PrepAway - Latest Free Exam Questions & Answers

Category: 70-483 (v.2)

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

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 3 and the loanAmount value is 9750, the loanRate must be set
to 8.25 percent. You need to adjust the loanRate value to meet the requirements.
What should you do?

Which two actions should you perform?

You are implementing a new method named ProcessData. The ProcessData() method calls
a third-party component that performs a long-running operation.
The third-party component uses the IAsyncResult pattern to signal completion of the longrunning operation.
You need to ensure that the calling code handles the long-running operation as a
System.Threading.Tasks.Task object.
Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)

Which two actions should you perform?

You are modifying an application that processes loans. The following code defines the Loan
class. (Line numbers are included for reference only.)

Loans are restricted to a maximum term of 10 years. The application must send a notification
message if a loan request exceeds 10 years.
You need to implement the notification mechanism.
Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)

Which code segment should you insert at line 14?

An application contains code that measures reaction times. The code runs the timer on a
thread separate from the user interface. The application includes the following code. (Line
numbers are included for reference only.)

You need to ensure that the application cancels the timer when the user presses the Enter key.
Which code segment should you insert at line 14?

Which two code segments can you insert at line 05 to achieve this goal?

You are developing an application that generates code. The application includes the
following code segment. (Line numbers are included for reference only.)

You need to ensure that code generated by the GenerateCode() method represents a class
that can be accessed by all objects in its application domain.
Which two code segments can you insert at line 05 to achieve this goal? (Each correct
answer presents a complete solution. Choose two.)

Which code segment should you use?

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

You need to ensure that after Proc1 executes, the database is left in a consistent state

DRAG DROP
You have an application that accesses a Microsoft SQL Server database.
The database contains a stored procedure named Proc1. Procl accesses several rows of
data across multiple tables.
You need to ensure that after Proc1 executes, the database is left in a consistent state.
While Proc1 executes, no other operation can modify data already read or changed by
Proc1. (Develop the solution by selecting and ordering the required code snippets.
You may not need all of the code snippets.)


Page 15 of 21« First...10...1314151617...20...Last »