You are creating a class library that will be used in a web application. You need to ensure that the class library assembly is strongly named. What should you do?
You have an assembly named Assembly named Assembly1 that is written in C#. Your company plans to sell Assembly =1 to customers. The customers might debug Assembly1. You need to minimize the amount of information contained within the debug symbols that are shipped with Assembly1. How should you create the debug symbols for Assembly1?
You are developing an application that contains a class named TheaterCustomer and a method named ProcessTheaterCustomer. The ProcessTheaterCustomer() method accepts a TheaterCustomer object as the input parameter. You have the following requirements: Store the TheaterCustomer objects in a collection. Ensure that the ProcessTheaterCustomer() method processes the TheaterCustomer objects in the order in which they are placed into the collection. You need to meet the requirements. What should you do?
You are debugging a 64-bit C# application. Users report System.OutOfMemoryException exceptions. The system is attempting to use arrays larger than 2 GB in size. You need to ensure that the application can use arrays larger than 2 GB. What should you do?
You are developing an application that will manage customer records. The application includes a method named FindCustomer.
Users must be able to locate customer records by using the customer identifier, customer name, or a combination of the two values.
You need to implement the FindCustomer() method to meet the requirement.
Which two sets of method signatures can you use to achieve this goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
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?
You have the following class definition.
You discover that when you execute the following code, the SpawnTasks method enters an infinite loop.
You need to prevent the SpawnTasks method from entering an infinite loop.
Which two changes should you make to the code? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
You are creating a class library that will be used in a web application. You need to ensure that the class library assembly is strongly named. What should you do?
You need to write a method that combines an unknown number of strings. The solution must minimize the amount of memory used by the method when the method executes. What should you include in the code?
You are developing an application that contains a class named TheaterCustomer and a method named ProcessTheaterCustomer. The ProcessTheaterCustomer() method accepts a TheaterCustomer object as the input parameter. You have the following requirements: Store the TheaterCustomer objects in a collection. Ensure that the ProcessTheaterCustomer() method processes the TheaterCustomer objects in the reverse order in which they are placed into the collection. You need to meet the requirements. What should you do?