You have two assemblies named Assembly1 and Assembly2 that are written in C#. Assembly1 loads Assembly2 by executing the following code.
You create a new project in Microsoft Visual Studio to build a new assembly that will replace Assembly2. The new assembly has the same name and version as the original Assembly2 assembly.
When you execute the code, Assembly1 cannot load Assembly2.
What should you do to ensure that Assembly1 can load Assembly2?
Answer : C
You have the following code.
You need to remove all of the data from the myData list.
Which code 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?
Answer : B
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?
Answer : A
You are implementing a new method named ProcessData. The ProcessData() method calls a third-party component that performs a long-running operation to retrieve stock information from a web service.
The third party component uses the IAsyncRcsult pattern to signal completion of the long-running operation so that the UI can be updated with the new values.
You need to ensure that the calling code handles the long-running operation as a 5ystem.Threading_Tasks.Task object to avoid blocking the Ul thread.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Answer : B, D
You plan to debug an application remotely by using Microsoft Visual Studio 2013.
You set a breakpoint in the code.
When you compile the application, you get the following error message: "The breakpoint will not currently be hit. No symbols have been loaded for this document."
You need to ensure that you can debug the application remotely.
What should you do?
You need to write a console application that meets the following requirements:
If the application is compiled in Debug mode, the console output must display Entering debug mode. If the application is compiled in Release mode, the console output must display Entering release mode.
Which code should you use?
Answer : B