PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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. The design of applications forms part of your responsibilities at Domain.com. Domain.com operates as a vehicle testing station that is affiliated to the Chicago Traffic Department.
You have been instructed to develop an enterprise solution for Domain.com. This solution is to meet the following requirements:
1. It must allow the Chicago Traffic department employees to register driver licenses for drivers.
2. It must allow the Chicago Traffic department employees to renew driver licenses for drivers.
3. It must allow other States’ Traffic departments to access driver licenses statuses via the Internet.
4. It must allow other States’ Traffic departments to build applications that integrate with your solution over open protocols.

To this end you propose that the solution should have the following aspects:
Deploy a Microsoft Windows Forms application to be used by Chicago Traffic Department employees.
Deploy a Microsoft ASP.NET 2.0 Web site to be used by other states’ Traffic departments.
You now need to make a decision as to whether your proposal will meet the requirements.

What conclusion can you draw?

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 code segment should you insert at line 07?

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft
ADO.NET.You write the following code segment. (Line numbers are included for reference
only.)
01 private List<string> GetEmployers() {
02 List<string> employers = new List<string>();
03 SqlCommand cmd = new SqlCommand();
04 …
05 XmlReader reader = cmd.ExecuteXmlReader();
06 while (reader.Read()) {
07
08 }
09 return employers;
10 }
The cmd object returns the following XML data structure.
<Resume>
<Name>
<Name.First>Shai</Name.First>
<Name.Last>Bassli</Name.Last>
</Name>
<Employment>
<Emp.OrgName>Wingtip Toys</Emp.OrgName>

</Employment>

</Resume>
You need to populate the employers list with each employer entry in the XML data
structure.
Which code segment should you insert at line 07?

Which code segment should you use?

You are creating an endpoint for a Windows Communication Foundation service by using Microsoft .NET Framework 3.5. You create the endpoint by using a custom binding. You write the following code segment.

BasicHttpBinding binding=new BasicHttpBinding();
binding.Security.Message.ClientCredentialType=
BasicHttpMessageCredentialType.Certificate;
binding.Security.Mode=BasicHttpSecurityMode.Message; CustomBinding cb=new CustomBinding(binding);
BindingElementCollection bec=cb.CreateBindingElements();

You need to prevent the custom binding from making a persistent connection to the service endpoint.
Which code segment should you use?

What should you do?

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. The design of applications forms part of your responsibilities at Domain.com. Domain.com operates as a financial institution.
You have been asked to make a recommendation in terms of the technological design to meet the Domain.com requirements. The plan is to develop a component for Domain.com. And this component is to provide the business logic for the management of customer accounts. The component should meet certain technical requirements to serve the Domain.com needs. Following is a list of these requirements:
1. Instantiated classes must be reused by multiple threads.
2. Method calls must be rolled back in the event of a failure occurring.
3. Only certain users must have the ability to call certain methods. In your recommendation you should mention the appropriate technology that will meet these technological requirements.

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?

Which code segment should you insert at line 02?

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft
ADO.NET.The application reads the following contacts.xml file.
<contacts>
<contact contactId=”2″>
<firstName>Don</firstName>
<lastName>Hall</lastName>
</contact>
<contact contactId=”3″>
<firstName>Simon</firstName>
<lastName>Rapier</lastName>
</contact>
<contact contactId=”4″>
<firstName>Shu</firstName>
<lastName>Ito</lastName>
</contact>
</contacts>
You write the following code segment. (Line numbers are included for reference only.)
01 XDocument loaded = XDocument.Load(@”C:\contacts.xml”);
02
03 foreach (string name in q)
04 Console.WriteLine(“{0}”, name);
You need to ensure that the application outputs only the names Simon Rapier and
ShuIto.Which code segment should you insert at line 02?