PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5.
You plan to add an existing .NET component into the current application. The .NET component has insufficient documentation.
The structure of the classes in the component must be analyzed before they are incorporated in the application.
You need to analyze the members in the component and the dependencies among them.
What should you do?

What should you do?

You create a Windows application by using the .NET Framework 3.5. The application is named APP1. APP1 has the following specifications:

* It merges information from text files.
* It reads each text file as a string.
* It runs on a server computer named Server1.

Another application named APP2 also runs on Server1. You discover that when a function is used to merge the text files, APP1
consumes additional memory. This additional memory consumption affects the operations of APP2.

You need to modify the design of APP1 to ensure minimum effect on APP2. What should you do?

What should you do to install the .NET Framework 3.5 on the client computers during the application deployment

5:You create a Windows application by using the .NET Framework 3.5. You plan to deploy an application by using the ClickOnce deployment method. The application has the following specifications:

* It contains multiple components.
* It is based on the .NET Framework 3.5.
* The .NET Framework 3.5 is not installed on all the client computers.

You need to install the .NET Framework 3.5 on the client computers during the application deployment process. What should you do?

What should you do to ensure that the requirements are met by using minimum possible development effort?

4:You are creating a Windows application by using the .NET Framework 3.5. The application must meet the following requirements:

* It records the details of the users who modify sensitive information.
* It requires a context-related stack dump for the details.
* It is executed by using the local user account without administrative privileges.

You need to ensure that the requirements are met by using minimum possible development effort. What should you do?

What should you do?

You are an enterprise application developer. You are creating an ASP.NET Web service. You identify an existing COM component that provides the necessary functionality required by your Web service. You need to wrap the COM component so that it can be accessed by your Web service. You also need to minimize marshalling overhead.
What should you do?

What should you do?

You maintain a Windows Forms application and an ASP.NET application.
The Windows Forms application has the following features:
The application impersonates the logged-on user.
The data is stored in a Microsoft SQL Server 2008 database.
The application grants user access to data by calling the IPrincipal.IsInRole method on the basis of user
roles.
The ASP.NET application uses forms-based authentication to authenticate users.
You need to share the login and user role information between the Windows Forms application and the
ASP.NET application.
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 includes a class that contains several public methods that modify the object state.
Object state is encapsulated in private data members. You need to ensure that your unit tests meet the following requirements:
– Call public methods.
– Validate the expected behavior by checking the values of private data members.
– Fail to compromise object security or encapsulation.
What should you do?

Which control should you use?

You are creating a Windows application by using the .NET Framework 3.5. The application contains a form to enter user details. The application must capture the preferred search engine as part of input data. You discover that the preferred search engine can be a known search engine or an unknown one. You need to allow
the user to select a value for the preferred search engine from a list of search engines. You also need to allow the user to enter a value for the search engine in the same list. Which control should you use?

What should you do to ensure that the implementation has minimum effect on the database connection?

2:You are creating a Windows application by using the .NET Framework 3.5. The application will be used for telephone directory management. The application has the following specifications:

* It stores data in a Microsoft SQL Server 2008 database instance.
* It uses the LINQ to SQL model.It stores the photograph of each directory member in the Picture column of the DirectoryEntry table.
* It displays the directory information in a DataGridView control.
* It supports expansion of rows of the DataGridView control to display the complete photograph of the directory member. The application is frequently used across remote or slow database connections.

You need to implement the lazy load technique to load the photographs from the database. You also need to ensure that the implementation has minimum effect on the database connection. What should you do?