PrepAway - Latest Free Exam Questions & Answers

Category: 70-567

Exam 70-567: UPGRADE: Transition your MCPD Web Developer Skills to MCPD ASP.NET Developer 3.5

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 custom control named OrderForm.

You write the following code segment.

public delegate void CheckOrderFormEventHandler(EventArgs e);
private static readonly object CheckOrderFormKey = new object();
public event CheckOrderFormEventHandler CheckOrderForm {
add {
Events.AddHandler(CheckOrderFormKey, value);
}
remove {
Events.RemoveHandler(CheckOrderFormKey,
value);
}
}

You need to provide a method that enables the OrderForm control to raise the CheckOrderForm event.

Which code segment should you use?

<?xml version="1.0" encoding="utf-8" ?

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

You add an XmlDataSource control named XmlDataSource1 to the Web page. XmlDataSource1 is bound to an XML document with the following structure.

<?xml version=”1.0″ encoding=”utf-8″ ?>
<clients>
<client ID=”1″ Name=”John Evans” />
<client ID=”2″ Name=”Mike Miller”/>

</clients>

You also write the following code segment in the code-behind file of the Web page.

protected void BulletedList1_Click(
object sender, BulletedListEventArgs e) {
//…
}

You need to add a BulletedList control named BulletedList1 to the Web page that is bound
to XmlDataSource1.

Which code fragment should you use?

What should you do?

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

You attach Microsoft Visual Studio 2008 debugger to the Microsoft Internet Explorer instance to debug the JavaScript code in the AJAX application.
You need to ensure that the application displays the details of the client-side object on the debugger console.

What should you do?

Which section should you add to the Web.config file?

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

The application contains two HTML pages named ErrorPage.htm and PageNotFound.htm.

You need to ensure that the following requirements are met:

When the user requests a page that does not exist, the PageNotFound.htm page is displayed.
When any other error occurs, the ErrorPage.htm page is displayed.

Which section should you add to the Web.config file?

Which two actions should you perform?

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

A JavaScript code segment in the AJAX application does not exhibit the desired behavior.
Microsoft Internet Explorer displays an error icon in the status bar but does not prompt you to debug the script.
You need to configure the Internet Explorer to prompt you to debug the script.

Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

What are three possible reasons that could cause this increase?

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

When you review the application performance counters, you discover that there is an unexpected increase in the value of the Application Restarts counter.
You need to identify the reasons for this increase.
What are three possible reasons that could cause this increase? (Each correct answer presents a complete solution. Choose three.)

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 enterName.aspx.
The Web page contains a TextBox control named txtName.
The Web page cross posts to a page named displayName.aspx that contains a Label control named lblName.
You need to ensure that the lblName Label control displays the text that was entered in the txtName TextBox control.

Which code segment should you use?

Which code segment should you insert at line 04?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a custom Web user control named SharedControl. The control will be compiled as a library.

You write the following code segment for the SharedControl control. (Line numbers are included for reference only.)

01 protected override void OnInit(EventArgs e)
02 {
03 base.OnInit(e);
04
05 }

All the master pages in the ASP.NET application contain the following directive.

<%@ Master Language=”C#” EnableViewState=”false” %>

You need to ensure that the state of the SharedControl control can persist on the pages that reference a master page.

Which code segment should you insert at line 04?

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?

What should you do?

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

You add a Web page named HomePage.aspx in the application. The Web page contains different
controls. You add a newly created custom control named CachedControl to the Web page.

You need to ensure that the following requirements are met:

The custom control state remains static for one minute.
The custom control settings do not affect the cache settings of other elements in the Web page.

What should you do?


Page 11 of 11« First...7891011