PrepAway - Latest Free Exam Questions & Answers

Tag: Exam 70-483 (update November 3rd, 2016)

Exam 70-483: Programming in C# (update November 3rd, 2016)

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

Which four code segments should you insert in sequence at line 03?

DRAG DROP
You are developing an application that will write data to a file. The application includes the following
code segment. (Line numbers are included for reference only.)
You need to ensure that the WriteData() method will write data to a file.
Which four code segments should you insert in sequence at line 03? (To answer, move the
appropriate code segments from the list of code segments to the answer area and arrange them in
the correct order.)


Page 19 of 24« First...10...1718192021...Last »