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 method should you use?

You are creating an ASP.NET application by using the .NET Framework 3.5.
You create an AJAX Web form in the application.
You create an ASP.NET AJAX client-component class in the Web form.
The class will be used in a JavaScript function in the Web form.
You plan to debug the JavaScript function.
You need to display all the fields of the AJAX client-component object in the trace console in the Web form by using the minimum amount of code.

Which method should you use?

Which storage mechanism should you use to store the shopping cart data?

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

The application will not be deployed on a Web farm or a Web garden scenario.

The application must meet the following requirements:
It stores shopping cart data for each user for the entire lifetime of an active session.
The shopping cart data can be stored regardless of browser settings.

You need to ensure optimal performance of the application for the shopping cart
functionality.

Which storage mechanism should you use to store the shopping cart data?

What should you do?

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

The application must meet the following requirements:

* Create a tracking number to identify errors.
* Display the tracking number to the user when an error occurs.

You need to ensure that all the exceptions that contain the tracking number are logged.
You also need to ensure that the exceptions to new pages that are added to the application are also logged in the same manner.

What should you do?

What should you do?

You are creating ASP.NET applications by using the .NET Framework 3.5.

The application occasionally experiences errors that cannot be reproduced on a test environment.

You need to ensure that the application meets the following requirements:

* All unexpected errors are logged.
* Logging is configured with a minimum amount of modification to the application code.

What should you do?

What should you do?

You are creating ASP.NET applications by using the .NET Framework 3.5.

The application uses the health monitoring events to raise application audit events in
the following scenarios:

* When users log in
* When users change their passwords
* When users perform other security-related actions

You need to ensure that the application logs all audit events for all applications on the Web server.

What should you do?

What should you do?

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

The application has performance problems. You plan to collect sample timing information for each page.

You need to ensure that while collecting the information, the following requirements are met:

* The application remains online.
* The trace output is not visible to end users.
* The trace output contains the rendering time for all controls on all the pages.

What should you do?

What should you do?

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

You write the following code fragment. (Line numbers are included for reference only.)

01 <asp:UpdatePanel ID=”upnData” runat=”server”
02 ChildrenAsTriggers=”false” UpdateMode=”Conditional”>
03 <Triggers>
04
05 </Triggers>
06 <ContentTemplate>
07 <!– more content here –>
08 <asp:LinkButton ID=”lbkLoad” runat=”server” Text=”Load”
09 onclick=”lbkLoad_Click” />
10 <asp:Button ID=”btnSubmit” runat=”server” Text=”Submit”
11 Width=”150px” onclick=”btnSubmit_Click” />
12 </ContentTemplate>
13 </asp:UpdatePanel>
14 <asp:Button ID=”btnUpdate” runat=”server” Text=”Update”
15 Width=”150px” onclick=”btnUpdate_Click” />

You need to ensure that the requirements shown in the following table are met.

What should you do?

Which code segment should you insert at line 06?

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

You create a login Web form by using the following code fragment.

<asp:ScriptManager ID=”ScriptManager1″ runat=”server” />
<asp:TextBox runat=”server” ID=”txtUser” Width=”200px” />
<asp:TextBox runat=”server” ID=”txtPassword” Width=”200px” />
<asp:Button runat=”server” ID=”btnLogin” Text=”Login” OnClientClick=”login(); return false;” />

When a user clicks the btnLogin Button control, the login() client-side script is called
to authenticate the user. The credentials provided in the TextBox controls are used to
call the client-side script.

You also add the following client-script code fragment in the Web form. (Line numbers
are included for reference only.)

01 <script type=”text/javascript”>
02 function login() {
03 var username = $get(‘txtUser’).value;
04 var password = $get(‘txtPassword’).value;
05
06 // authentication logic.
07 }
08 function onLoginCompleted(validCredentials, userContext,
09 methodName)
10 {
11 // notify user on authentication result.
12 }
13
14 function onLoginFailed(error, userContext, methodName)
15 {
16 // notify user on authentication exception.
17 }
18 </script>

The ASP.NET application is configured to use Forms Authentication. The ASP.NET AJAX authentication service is activated in the Web.config file.

You need to ensure that the following workflow is maintained:

– On successful authentication, the onLoginCompleted client-script function is called to notify the user.
– On failure of authentication, the onLoginFailed client-script function is called to display an error message.

Which code segment should you insert at line 06?

What should you do?

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

You write the following client-script code fragment to handle the exceptions thrown from asynchronous postbacks. (Line numbers are included for reference only.)

01 <script type=”text/javascript”>
02 function pageLoad()
03 {
04 var pageMgr =
05 Sys.WebForms.PageRequestManager.getInstance();
06
07 }
08
09 function errorHandler(sender, args)
10 {
11
12 }
13 </script>

You need to ensure that the application performs the following tasks:

– Use a common client-script function named errorHandler.
– Update a Label control that has an ID named lblError with the error message.
– Prevent the browser from displaying any message box or Javascript error.

What should you do?

Which DeviceSpecific element should you insert at line 02?

You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.
he application contains the following device filter element in the Web.config file.

<filter name=”isHtml” compare=”PreferredRenderingType” argument=”html32″ />

The application contains a Web page that has the following image control. (Line numbers are included for reference only.)

01 <mobile:Image ID=”imgCtrl” Runat=”server”>
02
03 </mobile:Image>

You need to ensure that the following conditions are met:

– The imgCtrl Image control displays the highRes.jpg file if the Web browser supports html.
– The imgCtrl Image control displays lowRes.gif if the Web browser does not support html.

Which DeviceSpecific element should you insert at line 02?


Page 9 of 11« First...7891011