PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to ensure that the entire FullName object is s…

You are troubleshooting an application that uses a class named FullName. The class is decorated with the
DataContractAttribute attribute. The application includes the following code. (Line numbers are included for
reference only.)

You need to ensure that the entire FullName object is serialized to the memory stream object.Which code segment should you insert at line 09?

Which code segment should you use?

You are developing a C# application. The application references and calls a RESTful web service named
EmployeeService. The EmployeeService web service includes a method named GetEmployee, which accepts
an employee ID as a parameter. The web service returns the following JSON data from the method.
{“Id”:1,”Name”:”David Jones”>
The following code segment invokes the service and stores the result:

You need to convert the returned JSON data to an Employee object for use in the application.
Which code segment should you use?

You need to ensure that the method meets the following …

DRAG DROP
You have a method that will evaluate a parameter of type Int32 named Status.
You need to ensure that the method meets the following requirements:
If Status is set to Active, the method must return 1.
If Status is set to Inactive, the method must return 0.
If Status is any other value, the method must return -1.
What should you do? (To answer, drag the appropriate statement to the correct location in the answer area.
Each statement 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:


Page 375 of 6,830« First...102030...373374375376377...380390400...Last »