PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You are creating a Windows Forms application by using the .NET Framework 3.5. You
create a new form in your application.You add 100 controls at run time in the Load event
handler of the form. Users report that the form takes a long time to get displayed.You need
to improve the performance of the form. What should you do?

Which two actions should you perform?

You create an ASP.NET application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application uses the Session object to store data. The application is currently deployed to a single server. You need to ensure that the application is available in the event of failure of any single server. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Which code segment should you use?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a Web page named Default.aspx in the root of the application.
You add an ImageResources.resx resource file in the App_GlobalResources folder.
The ImageResources.resx file contains a localized resource named LogoImageUrl.
You need to retrieve the value of LogoImageUrl.

Which code segment should you use?

Which two secure communication protocols should you use?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application consists of the following components:

An ASP.NET Web application that is deployed on a Web server named WEB1 An ASMX Web service that is deployed on an application server named APP1 A Microsoft SQL Server database that is deployed on a database server named SQL1 The ASP.NET application connects to an ASMX Web service. The APP1 server hosts several ASMX Web service applications. The ASMX Web service stores and retrieves data from SQL1.

You need to ensure that the secure communication strategy meets the following requirements:

The communication configuration between WEB1 and APP1 must be secured without other applications being affected. Server authentication and data encryption must be performed between APP1 and SQL1. Which two secure communication protocols should you use? (Each correct answer presents part of the solution. Choose two.)

Which line of code should you insert in the constructor of the page?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.

You create a page that contains the following code fragment.

<asp:ListBox ID=”lstLanguages” AutoPostBack=”true” runat=”server” />

You write the following code segment in the code-behind file for the page.

void BindData(object sender, EventArgs e) {
lstLanguages.DataSource = CultureInfo.GetCultures(CultureTypes.AllCultures);
lstLanguages.DataTextField = “EnglishName”;
lstLanguages.DataBind();
}

You need to ensure that the lstLanguages ListBox control maintains the selection of the user during postback.

Which line of code should you insert in the constructor of the page?

What additional step should you perform?

You create a Microsoft ASP.NETWeb application by using the Microsoft .NET Framework
version 3.5.You use Windows Authentication for the application. You set up NTFS file
system permissions for the Sales group to access a particular file. You discover that all the
users are able to access the file. You need to ensure that only the Sales group users can
access the file.What additional step should you perform?