When compressing data with the DeflateStream class, how do you specify a stream into which to write compressed
When compressing data with the DeflateStream class, how do you specify a stream into which to write compressed data?
Which event would you use to run a method immediately before deserialization occurs?
Which event would you use to run a method immediately before deserialization occurs?
What should you do?
You have developed an application that simplifies hard drive management for Domain.com’s administrators.
The application that you created logs all modifications made to physical hard drives on an hourly basis.
You now need to create an EventQuery object for this application.
What should you do?
What kind of object does the generic Dictionary enumerator return?
What kind of object does the generic Dictionary enumerator return?
What should you do?
Domain.com has a server named Certkiller -SR05 that has numerous processors installed.
You have been given the task of developing an application that displays certain clock speed statistics
on all processors installed on Certkiller -SR05.
You need to ensure that this requirement is fully satisfied.
What should you do?
Choose the code segment which will ensure that MyDictionary is type safe?
You work as the application developer at Hi-Tech.com. You create a new custom dictionary named MyDictionary.
Choose the code segment which will ensure that MyDictionary is type safe?
What should you do?
You have created an application to interface with an inventory storage system, and want to enable
tracing in the application to track stock shortages and surpluses.
The application should not, however, trace inventory levels if no shortages or surpluses exist.
In addition, you do not want recompile every time to switch tracing capabilities on or off.
What should you do?
Which code should you use?
You are a Web developer for Contonso. You are creating an online inventory Web site to be used by employees in Germany and the United States.
When a user selects a specific item from the inventory, the site needs to display the cost of the item in both United States currency and German currency.
The cost must be displayed appropriately for each locale.
You want to create a function to perform this task.
Which code should you use?
What should you do?
You have recently created an application, and want to capture all debugging text messages generated by it.
You would like these debugging messages to display on the command line. The application that you created contains the following code:
Debug.WriteLine (“Start the processing”);
Console.WriteLine (“Generated by Console.WriteLine”);
Debug.WriteLine (“End the processing”);
You need to ensure that you are able to capture all debugging messages to the command line.
What should you do?
Which two factors should you ascertain from the tester?
You create Microsoft Windows-based applications.
You create an application that requires users to be authenticated by a domain controller.
The application contains a series of processor intensive method calls that require different database connections.
A bug is reported during testing.
The bug description states that the application hangs during one of the processor-intensive calls more than 50 percent of the times when the method is executed.
Your unit test for the same method was successful.
You need to reproduce the bug.
Which two factors should you ascertain from the tester? (Each correct answer presents part of the solution. Choose two.)