PrepAway - Latest Free Exam Questions & Answers

Category: 70-483 (v.3)

Exam 70-483: Programming in C# (update March 8th, 2016)

You need to adjust the loanRate value to meet the requirements

You are evaluating a method that calculates loan interest. The application includes the following
code segment. (Line numbers are included for reference only.)

When the loanTerm value is 5 and the loanAmount value is 4500, the loanRate must be set to 6.5
percent.
You need to adjust the loanRate value to meet the requirements.
What should you do?

Which code segment should you use?

You are developing an application that includes a class named Customer and a generic list of
customers. The following code segment declares the list of customers:
List<Customer> customersList = new List<Customer> () ;
You populate the customersList object with several hundred Customer objects.
The application must display the data for five Customer objects at a time.
You need to create a method that will return the correct number of Customer objects.
Which code segment should you use?

Which code segment should you insert at line 09?

You are developing an application that will use multiple asynchronous tasks to optimize
performance.
You create three tasks by using the following code segment. (Line numbers are included for
reference only.)

You need to ensure that the ProcessTasks() method waits until all three tasks complete before
continuing.
Which code segment should you insert at line 09?

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

You are developing an application by using C#. The application includes a method named
SendMessage. The SendMessage() method requires a string input.
You need to replace “Hello” with “Goodbye” in the parameter that is passed to the SendMessage()
method.
Which two code segments can you use to achieve this goal? (Each correct answer presents a
complete solution. Choose two.)

How should you complete the relevant code?

DRAG DROP
You are developing a C# application. The application includes a class named Rate. The following code
segment implements the Rate class:

You define a collection of rates named rateCollection by using the following code segment:
Collection<Rate> rateCollection = new Collection<Rate>() ;
The application receives an XML file that contains rate information in the following format:

You need to parse the XML file and populate the rateCollection collection with Rate objects.
How should you complete the relevant code? (To answer, drag the appropriate code segments to
the correct locations in the answer are
a. 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 four code segments should you insert in sequence at line 03?

DRAG DROP
You are developing an application that will write string values to a file. The application includes the
following code segment. (Line numbers are included for reference only.)
01 protected void ProcessFile(string fileName, string value)
02 {
03
04 }
You need to ensure that the ProcessFile() method will write string values 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 20 of 23« First...10...1819202122...Last »