PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

How should you complete the relevant code?

DRAG DROP
You are implementing a method that creates an instance of a class named User. The User class contains a
public event named Renamed. The following code segment defines the Renamed event:
Public event EventHandler<RenameEventArgs> Renamed;
You need to create an event handler for the Renamed event by using a lambda expression.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct
locations in the answer area. Each code segment may be used once, more than once, or not at all. You may
need to drag the split bar between panes or scroll to view content.)
Select and Place:

Which three code segments should you insert in sequence…

DRAG DROP
You are developing an application that includes a class named Warehouse. The Warehouse class includes a
static property named Inventory- The Warehouse class is defined by the following code segment. (Line
numbers are included for reference only.)

You have the following requirements:
Initialize the _inventory field to an Inventory instance.
Initialize the _inventory field only once.
Ensure that the application code acquires a lock only when the _inventory object must be instantiated.
You need to meet the requirements.
Which three code segments should you insert in sequence at line 09? (To answer, move the appropriate code
segments from the list of code segments to the answer area and arrange them in the correct order.)
Select and Place:

Which three actions should you perform in sequence?

DRAG DROP
You are developing an application by using C#. The application will process several objects per second.
You need to create a performance counter to analyze the object processing.
Which three actions should you perform in sequence? (To answer, move the appropriate actions from the list of
actions to the answer area and arrange them in the correct order.)
Select and Place:

Which code segment should you use?

You are developing an application that accepts the input of dates from the user.
Users enter the date in their local format. The date entered by the user is stored in a string variable named
inputDate. The valid date value must be placed in a DateTime variable named validatedDate.
You need to validate the entered date and convert it to Coordinated Universal Time (UTC). The code must not
cause an exception to be thrown.
Which code segment should you use?

You need to ensure that the debugger breaks execution w…

You are debugging an application that calculates loan interest. The application includes the following code.
(Line numbers are included for reference only.)

You need to ensure that the debugger breaks execution within the CalculateInterest() method when the
loanAmount variable is less than or equal to zero in all builds of the application.
What should you do?


Page 387 of 6,830« First...102030...385386387388389...400410420...Last »