PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you use?

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

You write the following code fragment.

<asp:ListBox SelectionMode=”Multiple” ID=”ListBox1″ runat=”server”></asp:ListBox>
<asp:ListBox ID=”ListBox2″ runat=”server”></asp:ListBox>
<asp:Button ID=”Button1″ runat=”server” Text=”Button” onclick=”Button1_Click” />

You need to ensure that when you click the Button1 control, a selected list of items move from the ListBox1 control to the ListBox2 control.

Which code segment should you use?

Which code fragment should you insert at line 11?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework
version 3.5.You add the following code fragment to the Web.config file of the application
(Line numbers are included for reference only).
01 <healthMonitoring>
02 <providers>
03 <add name=”EventLogProvider”
04 type=”System.Web.Management.EventLogWebEventProvider
05 />
06 <add name=”WmiWebEventProvider”
07 type=”System.Web.Management.WmiWebEventProvider
08 />
09 </providers>
10 <eventMappings>
11
12 </eventMappings>
13 <rules>
14 <add name=”Security Rule” eventName=”Security Event”
15 provider=”WmiWebEventProvider” />
16 <add name=”AppError Rule” eventName=”AppError Event”
17 provider=”EventLogProvider” />
18 </rules>
19 </healthMonitoring>
You need to configure Web Events to meet the following requirements:
Security-related Web Events are mapped to Microsoft Windows Management
Instrumentation (WMI) events.
Web Events caused by problems with configuration or application code are logged
into the Windows Application Event Log.
Which code fragment should you insert at line 11?

Which code fragment should you insert at line 11?

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

You add the following code fragment to the Web.config file of the application (Line numbers are included for reference only).

01 <healthMonitoring>
02 <providers>
03 <add name=”EventLogProvider”
04 type=”System.Web.Management.EventLogWebEventProvider
05 />
06 <add name=”WmiWebEventProvider”
07 type=”System.Web.Management.WmiWebEventProvider
08 />
09 </providers>
10 <eventMappings>
11
12 </eventMappings>
13 <rules>
14 <add name=”Security Rule” eventName=”Security Event”
15 provider=”WmiWebEventProvider” />
16 <add name=”AppError Rule” eventName=”AppError Event”
17 provider=”EventLogProvider” />
18 </rules>
19 </healthMonitoring>

You need to configure Web Events to meet the following requirements:

* Security-related Web Events are mapped to Microsoft Windows Management Instrumentation (WMI) events.
* Web Events caused by problems with configuration or application code are logged into the Windows Application Event Log.

Which code fragment should you insert at line 11?

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

You are creating an ASP.NET application by using the .NET Framework 3.5.
Airline passengers access the application over the Internet and from airport kiosks around the world.
The airport kiosks do not allow users to modify browser settings.
You have created language-specific resources for all static text elements in the application.
You need to ensure that the content is displayed in the preferred language of the users, regardless of their physical location.

What should you do?

What should you do?

You create a Microsoft ASP.NET AJAX application by using the Microsoft .NET
Framework version 3.5.You use AJAX-enabled components in the Web page. You add a
ScriptManager control to the page. The Web.config file has the following code fragment.
<deployment retail=”false” />
You receive an unhandled exception in the browser. You plan to debug the client-side script.
You need to ensure that the debug scripts are sent to the browser. What should you do?