Question 301
You are developing an application by using C#. You provide a public key to the development team during development.
You need to specify that the assembly is not fully signed when it is built.
Which two assembly attributes should you include in the source code? (Each correct answer presents part of the solution. Choose two.)
Question 302
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?
Question 303
You are developing an application that produces an executable named MyApp.exe and an assembly named MyApp.dll.
The application will be sold to several customers.
You need to ensure that enough debugging information is available for MyApp.exe, so that if the application throws an error in a customer's environment, you can debug the error in your own development environment.
What should you do?
Question 304
You are writing the following method (line numbers are included for reference only):
You need to ensure that CreateObject compiles successfully.
What should you do?
Question 305
You are developing a C# application that includes a class named Product. The following code segment defines the Product class:
You implement System.ComponentModel.DataAnnotations.IValidateableObject interface to provide a way to validate the Product object.
The Product object has the following requirements:
* The Id property must have a value greater than zero.
* The Name property must have a value other than empty or null.
You need to validate the Product object. Which code segment should you use?
