70-483 Programming in C#

Loading demo links...

Showing 1–3 of 15 questions

Question 1 (Volume A)

DRAG DROP

You are developing an application that will include a method named GetData. The GetData() method will retrieve several lines of data from a web service by using a System.IO.StreamReader object.

You have the following requirements:

The GetData() method must return a string value that contains the entire response from the web service. The application must remain responsive while the GetData() method runs.

You need to implement the GetData() method.

How should you complete the relevant code? (To answer, drag the appropriate objects to the correct locations in the answer area. Each object 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:

Answer is in the explanation below.

Question 2 (Volume B)

DRAG DROP

You are developing an application that implements a set of custom exception types. You declare the custom exception types by using the following code segments:

The application includes a function named DoWork that throws .NET Framework exceptions and custom exceptions. The application contains only the following logging methods:

The application must meet the following requirements:

When ContosoValidationException exceptions are caught, log the information by using the static void Log(ContosoValidationException ex) method.

When ContosoDbException or other ContosoException exceptions are caught, log the information by using the static void Log(ContosoException ex) method. When generic exceptions are caught, log the information by using the static void Log(Exception ex) method.

You need to meet the requirements.

You have the following code:

Which code segments should you include in Target 1, Target 2 and Target 3 to complete the code? (To answer, drag the appropriate code segments to the correct targets 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:

Answer is in the explanation below.

Question 3 (Volume B)

HOTSPOT

You have an existing order processing system that accepts .xml files, The following code shows an example of a properly formatted order in XML:

You create the following class that will be serialized:

For each of the following properties, select Yes if the property is serialized according to the defined schema. Otherwise, select No.

Hot Area:

Answer is in the explanation below.