PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You are an enterprise application developer. You are developing a component to contain a large number of properties. You plan to write a method in the component that will accept an object as a parameter. The method will return a formatted string representation of all property values of the object. You need to implement the method by ensuring the minimum amount of memory usage.
What should you do?

What should you do?

You are designing a component for a Windows Forms application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The component will process a long-running business transaction. You plan to provide the status of completion of the transaction to the users.
You need to ensure that the application displays a progress bar that reports the percentage of completion of the transaction.
You need to achieve this goal without using the polling method.
What should you do?

What should you do?

You are creating a Windows application by using the .NET Framework 3.5. The application processes a large number of records. The records are processed on a separate thread. Occasionally, the record processing takes a long time. You add a Cancel button to the form. You also add an AutoResetEvent object on the user
interface thread, and set the default value of the object to false. You plan to perform the following steps in sequence:

* After every record is processed, read the value of the AutoResetEvent object by using the AutoResetEvent.WaitOne method.
* When the value of the AutoResetEvent object is True, discontinue the record processing.

You need to modify the Click event handler of the Cancel button to change the value of the AutoResetEvent object. What should you do?

What should you do?

You are an enterprise application developer. You create a Web Service that provides methods which return the values of a series of calculations. You identify performance problems in a component within the calculations. You need to find out the precise number of nanoseconds that were consumed by the call to the component.
What should you do?

Which local data store should you use?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application must use a local data store to support those applications that connect occasionally.
You need to ensure that the local data store meets the following requirements:
– It does not create additional services on client computers.
– It provides synchronization capabilities to other data stores.
Which local data store should you use?

Which code segment should you use?

You are creating a Windows Forms application that has the print functionality by using the .NET Framework 3.5. You implement the PrintPage page event for the form. You associate an instance of the PrintDocument control along with an instance of the PrintPreviewDialog control named prevDialog1. You want to set the
default size of the PrintPreviewDialog class to full screen. You need to provide a print preview for the user by adding a code segment to the Click event of the button on the form. Which code segment should you use?

What should you do?

You are an enterprise application developer. You plan to design a monitoring mechanism for a Web service. The Web service contains a method named Forecast that uses a complex algorithm to forecast weather. The algorithm generates a number of exceptions. Administrators are responsible for shutting down the service when the number of exceptions is greater than 50 for every 10 seconds. You need to monitor the number of exceptions that are generated by the Forecast method during the execution of the Web service.
What should you do?