PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

How should you complete the relevant code?

DRAG DROP
You are developing an application by using C#. The application includes an array of decimal
values named loanAmounts. You are developing a LINQ query to return the values from the
array.
The query must return decimal values that are evenly divisible by two. The values must be
sorted from the lowest value to the highest value.
You need to ensure that the query correctly returns the decimal values.
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.)

Which code segment should you use to call the base method?

You are developing a custom tooltip control that inherits from an existing WinJS tooltip
control. The custom control overrides the open ( ) method of the base control to extend the
functionality. The following code segment depicts the structure of the method override.
Open: function (type) {
• • •
}
You need to ensure that the base method executes at the start of the override.
Which code segment should you use to call the base method?

Which code segment should you insert at line 20?

You are developing an application. The application converts a Location object to a string by
using a method named WriteObject. The WriteObject() method accepts two parameters, a
Location object and an XmlObjectSerializer object.
The application includes the following code. (Line numbers are included for reference only.)

You need to serialize the Location object as a JSON object.
Which code segment should you insert at line 20?

How should you complete the relevant code?

DRAG DROP
An application serializes and deserializes XML from streams. The XML streams are in the
following format:

The application reads the XML streams by using a DataContractSerializer object that is
declared by the following code segment:
var ser = new DataContractSerializer(typeof(Name));
You need to ensure that the application preserves the element ordering as provided in the
XML stream.
How should you complete the relevant code? (To answer, drag the appropriate attributes to
the correct locations in the answer area-Each attribute 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 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, 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.)