You need to ensure that CreateObject compiles successfully
Which type of delegate should you use?
You are developing an application.
You need to declare a delegate for a method that accepts an integer as a parameter, and then returns an
integer.
Which type of delegate should you use?
Which two assembly identity attributes should you inclu…
You are developing an application that will be deployed to multiple computers. You set the assembly name.
You need to create a unique identity for the application assembly.
Which two assembly identity attributes should you include in the source code? (Each correct answer presents
part of the solution. Choose two.)
Which code segment should you use in the method body?
You are implementing a method named ProcessReports that performs a long-running task. The
ProcessReports() method has the following method signature:
public void ProcessReports(List<decimal> values,CancellationTokenSource cts, CancellationToken ct)
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 ProcessReports() method performs the required actions. Which code segment
should you use in the method body?
Which code should you use?
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?
Which code should you use to replace line 05?
You are developing an application.
The application contains the following code segment (line numbers are included for reference only):
When you run the code, you receive the following error message: “Cannot implicitly convert type ‘object” to ‘int’.
An explicit conversion exists (are you missing a cast?).”
You need to ensure that the code can be compiled. Which code should you use to replace line 05?
Which code segment should you insert at line 03?
Which code should you insert at line 03?
You are creating a console application named App1. 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?