PrepAway - Latest Free Exam Questions & Answers

Category: 70-483 (v.2)

Exam 70-483: Programming in C# (update December 5th, 2014)

How should you complete the relevant code?

DRAG DROP
You are adding a method to an existing application. The method uses an integer named
statusCode as an input parameter and returns the status code as a string.
The method must meet the following requirements:
Return “Error” if the statusCode is 0.
Return “Success” if the statusCode is 1.
Return “Unauthorized” if the statusCode is any value other than 0 or l.
You need to implement the method to meet the requirements.
How should you complete the relevant code? (To answer, drag the appropriate statements
to the correct locations 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.)

You need to ensure that each value is appended to the Value property in the order that the Modify methods are

You have the following class (line numbers are included for reference only):

ServiceProxy is a proxy for a web service. Calls to the Update method can take up to five
seconds. The Test class is the only class the uses Class1.
You run the Execute method three times, and you receive the following results:
213
312
231
You need to ensure that each value is appended to the Value property in the order that the
Modify methods are invoked.
What should you do?

Which code segment should you use in the method body?

You are implementing a method named ProcessData that performs a long-running task. The
ProcessData() method has the following method signature:
public void ProcessData(List<decimal> values, CancellationTokenSource source,
CancellationToken token)
If the calling code requests cancellation, the method must perform the following actions:
Cancel the long-running task.
Set the task status to TaskStatus.Canceled.
You need to ensure that the ProcessData() method performs the required actions.
Which code segment should you use in the method body?

You need to add the following code to the method: At which line should you insert the code?

You are developing an application in C#.
The application uses exception handling on a method that is used to execute mathematical
calculations by using integer numbers.
You write the following catch blocks for the method (line numbers are included for reference only):

You need to add the following code to the method:

At which line should you insert the code?

Which two code segments can you use to achieve this goal?

You are implementing a method named GetValidPhoneNumbers. The
GetValidPhoneNumbers() method processes a list of string values that represent phone numbers.
The GetValidPhoneNumbers() method must return only phone numbers that are in a valid format.
You need to implement the GetValidPhoneNumbers() method.
Which two code segments can you use to achieve this goal? (Each correct answer presents
a complete solution. Choose two.)


Page 18 of 21« First...10...1617181920...Last »