PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What should you do?

You are creating an ASP.NET application by using the .NET Framework 3.5.

You review the design of an ASP.NET Web form that collects text input.

The Web form design has the following features:

* It uses the single-file page model that has script blocks which specify the runat=”server” attribute.
* It includes a TextBox control.
* It includes a LinkButton control to submit the Web form.
* It includes a RegularExpressionValidator control that validates the text input.

You need to ensure that the Web form functions properly in browsers that have JavaScript support disabled.

What should you do?

Which code segment should you use?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework
version 3.5. The application runs on Microsoft IIS 6.0. You create a page named
oldPage.aspx.You need to ensure that the following requirements are met when a user
attempts to access the page:
The browser displays the URL of the oldPage.aspx page.

The browser displays the page named newPage.aspx.
Which code segment should you use?

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 conclusion can you draw?

You work as the Enterprise application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. All servers in the domain run Windows Server 2003. Your responsibilities at Domain.com include the design and development of applications. Domain.com operates as the Emergency unit of the Traffic Department. You are currently busy implementing a Microsoft .NET Remoting component. This component will be used in the traffic control environment. The component will allow the traffic department to guide all traffic officers on duty to the available alternative routes during emergencies. As such the component must meet the following requirements:
1. A specific instance of the component must be allowed to control access to the navigational system on one traffic officer’s vehicle.
2. The component must be instantiated only once while the traffic officer’s navigational system is being controlled.
3. The component must be hosted on a server that is separate from the application. To this end the design suggests making us of single-call activation over Transmission Control Protocol (TCP). You are now required to decide whether or not the design meets the requirements.

What conclusion can you draw?

Which state repository should you choose?

You are creating an ASP.NET application by using the .NET Framework 3.5.
You plan to develop a custom control library. Developers will use the control on Web pages in multiple applications.
Each ASP.NET application will be configured by using different state management strategies.
You need to ensure consistent state management for all instances of the control.

Which state repository should you choose?

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 should you do?

You are creating a business component by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The component manages the interest rates on new loans. You need to ensure that all online applications that access the component are notified of the changes as soon as they occur. You need to achieve this goal by using the minimum amount of network bandwidth. What should you do?