PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You are creating a Windows application by using the .NET Framework 3.5.
The application uses resource files to provide localization support.
The application must meet the following requirements:
If the user is a French Canadian or a French Belgian, then the interface is initially displayed in the
respective language.
If the user is French, then the interface is displayed in French.
If the user is not from any of these three categories, then the interface is displayed in English.
You need to design a localization strategy to meet the specified requirements.
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 create a Windows Forms application by using the .NET Framework 3.5. The application is used for audio/video management. The application provides the following features:

* Usage license for music or video can be purchased from an online store.
* Backup of music and video for disaster recovery can be done.
* Custom playlists can be created to organize downloaded content.

The application has the following requirements:
* A license file is required to play local music or video.
* Users can access previously-purchased content from any computer that runs the application.
* User theme settings for the UI might only be customized for each computer.

You need to design a state and data management strategy that meets the requirements.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 component. The component will be referenced by the .NET and COM applications.
The component contains the following code segment.
public class Employee
{
public Employee(string name)
{}
}
The .NET and COM applications must perform the following tasks:
– Create objects of the Employee type.
– Use these objects to access the employee details.
You need to ensure that the .NET and COM applications can consume the managed component.
What should you do?

Which code segment should you add at line 02?

You are creating a Windows Forms application by using the .NET Framework 3.5. You create a new form in the application. You add a ContextMenuStrip control named ctxMenu to the form. You have a user-defined class named CustomControl. You write the following code segment in the application. (Line numbers are included for reference only.)

01 CustomControl myControl = new CustomControl();
02

You need to ensure that an instance of CustomControl is displayed on the form as a top-level item of the ctxMenu control. Which code segment should you add at line 02?

Which performance counter should you monitor?

You are an enterprise application developer. An ASP.NET application accesses a Microsoft SQL Server database. You discover that the application intermittently logs the following exception:
“System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.”
You need to identify an appropriate performance counter to ascertain that the exception is caused by the leaking connections.
Which performance counter should you monitor?

What should you do?

You are creating a Windows application by using the .NET Framework 3.5.
The application stores data in a Microsoft SQL Server 2008 database.
You discover the following performance issues:
The application takes a long time to respond.
The application consumes over 900 MB of RAM.
You need to ascertain the reason for the poor performance of the application.
What should you do?

What should you do?

You are creating a Web application for an enterprise solution by using Microsoft SQL Server 2008 and the .NET Framework 3.5.
The application environment has the following specifications:
– Several users access the same data.
– Data does not change frequently.
The database schema is as shown in the exhibit. (Click the Exhibit button.)
You need to build the business logic layer to meet the following requirements:
– Support the DataRelation class.
– Minimize redundant data.
– Maintain the design of the original schema.

What should you do?