PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

How should you complete the relevant code?

DRAG DROP
You are developing a custom date picker control for a Windows Store app.
The control must meet the following requirements:
• Inherit from the WinJS DatePicker control.
• Provide an additional property to set if the date selection is required.
You need to ensure that the requirements are met.
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.)

How should you complete the relevant code?

DRAG DROP
You are testing an application. The application includes methods named CalculateInterest
and LogLine. The CalculateInterest() method calculates loan interest. The LogLine() method
sends diagnostic messages to a console window.
You have the following requirements:
The CalculateInterest() method must run for all build configurations.
The LogLine() method must be called only for debug builds.
You need to ensure that the methods run correctly.
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.)

How should you complete the relevant code?

HOTSPOT
You develop a Windows Store app by using JavaScript. The app displays a list of video
controls. The user can add video controls to the list.
You need to animate the video control list when the user adds a control to the list.
How should you complete the relevant code? (To answer, select the correct code segment
from each drop-down list in the answer area.)

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 within the CalculateInterest() method when…

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?

Which two assembly attributes should you include in the source code?

You are developing an application by using C#. You provide a public key to the development
team during development.
You need to specify that the assembly is not fully signed when it is built.
Which two assembly attributes should you include in the source code? (Each correct answer
presents part of the solution. Choose two.)

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.)