PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You are designing a class library by using the .NET Framework 3.5 and Microsoft SQL Server 2008.
The class library will be used by several .NET applications. The class library will contain a utility class that executes advanced mathematical operations.
You need to design the utility class to meet the following requirements:
– It can be accessed only by other classes in the same .NET assembly.
– It can be instantiated only once.
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?

Which two services should you choose?

You are an enterprise application developer. You develop a solution by using Microsoft Visual Studio .NET 2005 and .NET Framework 2.0. The application will be used to receive and process sales orders. The application is designed as a three-tiered application. The logical design of the application identifies the following services:
* Update the ship date on an order.
* Verify sales quantity on an order.
* Store sales order information.Display product information.
* Display order details.

The security policy has the following specifications:
* Changes to the database must be handled through stored procedures.
* Other services must be handled in other layers.
*
You need to identify the services that must be placed into the stored procedures.
Which two services should you choose? (Each correct answer presents part of the solution. Choose two.)

What should you do?

You are creating a Windows application by using the .NET Framework 3.5.
The application is used to retrieve information about musicians.
The application uses LINQ to SQL to return an Artist object, and related Album objects for each artist.
You plan to add a method named FindArtists. The method has parameters named ArtistName of type
string and IncludeAlbums of type boolean.
The FindArtists method must meet the following requirements:
If the IncludeAlbums parameter is set to True, then all the Album objects of the returned Artist object are
populated.
If the IncludeAlbums parameter is set to False, then all the Album objects of the returned Artist object are
not populated.
No duplicated data is returned.
Data returned does not require additional processing on the client application.
You need to ensure that changes to the client application are minimal.
What should you do?

What should you do?

You create a Web Service by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The Web service will retrieve data from text files in a network share. The network share uses the NTFS file system permissions.
You need to design a component that allows users to access only the files for which they have the necessary permission.
What should you do?

What should you do?

You are an enterprise application developer. You plan to review the design of a component. The component is used to process purchase orders from distributors. You need to ensure that the component meets the following requirements:
* It is highly available.
* It is transaction-oriented.
* It is accessible over the company intranet.
* It requires the minimum amount of coding effort.

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 create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
The application will be used by multiple types of users. The application will also interact with external applications.
You need to design the interaction among the application, the users of the application, and the external applications.
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?