Which collection type should you use?
You are developing an application that includes a class named Order. The application will store a collection of Order objects. The collection must meet the following requirements: • Internally store a key and a value for each collection item. • Provide objects to iterators in ascending order based on the...
Which code segment should you insert at line 06?
You are developing an application that will convert data into multiple output formats. The application includes the following code. (Line numbers are included for reference only.) You are developing a code segment that will produce tab-delimited output. All output routines implement the following interface: You need to minimize the completion...
How should you complete the relevant code?
DRAG DROP You are developing an application that implements a set of custom exception types. You declare the custom exception types by using the following code segments: The application includes a function named DoWork that throws .NET Framework exceptions and custom exceptions. The application contains only the following logging methods:...
Which code segment should you insert at line 20?
You are developing an application. The application converts a Location object to a string by using a method named WriteObject. The WriteObject() method accepts two parameters, a Location object and an XmlObjectSerializer object. The application includes the following code. (Line numbers are included for reference only.) You need to serialize...
Which garbage collector method should you use?
You are developing an application by using C#. The application includes an object that performs a long running process. You need to ensure that the garbage collector does not release the object's resources until the process completes. Which garbage collector method should you use?A . RemoveMemoryPressure()B . ReRegisterForFinalize()C . WaitForFullGCComplete()D...
How should you complete the relevant code?
DRAG DROP You are testing an application. The application includes methods named CalculateInterest and LogLine. The CalculateInterest() method calculates loan interest. The LogLine() method sends diagnostic messages to a console window. You have the following requirements: • The CalculateInterest() method must run for all build configurations. • The LogLine() method...
How should you complete the relevant code?
DRAG DROP You are developing an application by using C#. The application includes an array of decimal values named loanAmounts. You are developing a LINQ query to return the values from the array. The query must return decimal values that are evenly divisible by two. The values must be sorted...
Which two assembly attributes should you include in the source code?
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...
Which code segment should you insert at line 08?
You are developing an application that uses the Microsoft ADO.NET Entity Framework to retrieve order information from a Microsoft SQL Server database. The application includes the following code. (Line numbers are included for reference only.) The application must meet the following requirements: • Return only orders that have an OrderDate...
Which code segment should you use?
You are developing an application that will process orders. The debug and release versions of the application will display different logo images. You need to ensure that the correct image path is set based on the build configuration. Which code segment should you use? A . Option AB . Option...