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 use?
You are developing an application for a bank. The application includes a method named ProcessLoan that
processes loan applications. The ProcessLoan() method uses a method named CalculateInterest. The
application includes the following code:
You need to declare a delegate to support the ProcessLoan() method.
Which code segment should you use?
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 long- running 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.)
You need to adjust the loanRate value to meet the requi…
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 code should you insert at line 03?
You are creating a console application named Appl.
App1 retrieves data from the Internet by using JavaScript Object Notation (JSON).
You are developing the following code segment (line numbers are included for reference only):
You need to ensure that the code validates the JSON string.
Which code should you insert at line 03?
Which code should you use?
Which code should you insert at line 28?
Which code should you insert at line 03?
You are creating a console application named App1.
App1 will validate user input for order entries.
You are developing the following code segment (line numbers are included for reference only):
You need to complete the code segment.
The solution must ensure that prices are positive and have two decimal places.
Which code should you insert at line 03?
Hot Area:
Which type of object should you use in the method?
You need to write a method that retrieves data from a Microsoft Access 2013 database. The method must meet
the following requirements:
Be read-only.
Be able to use the data before the entire data set is retrieved.
Minimize the amount of system overhead and the amount of memory usage.
Which type of object should you use in the method?