PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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. Your responsibilities at Domain.com include the design and development of applications. Domain.com operates as a service provider in the security industry. You are currently developing a video surveillance application for Domain.com. You need to implement a class named Visuals. Visuals will be destined to control access to a video camera. A method named CommenceRecording must start a recording session of the camera if one is not already started. In the event of a recording session having started already when the method is called, you have to interrupt the execution of the application. To this end you now need to define the Visuals class.

What should you do? (Choose the correct code segment.)

Which three additional tasks should you perform?

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

The applications will be hosted on the same physical Web server.
You have the following page layout requirements:

* A common page layout that applies to all the ASP.NET pages across the Web applications
* All pages to automatically reflect changes that are made to the common page layout

You create a master page that provides the page layout.

You need to implement a solution that meets the layout requirements.

Which three additional tasks should you perform? (Each correct answer presents part of the solution. Choose three.)

Which code segment should you insert at line 08?

You create an application by using the Microsoft .NET Framework 3.5 and Microsoft
ADO.NET. The application connects to a Microsoft SQL Server 2005 database.You create a
DataSet named northwind. The northwind DataSet contains two related tables named
Customers and Orders.You write the following code segment. (Line numbers are included
for reference only.)
01 private void Page_Load(object sender, EventArgs e)
02 {
03 this.ordTblAdap.Fill(this.northwind.Orders);
04 this.custTblAdap.Fill(this.northwind.Customers);
05 }
06 private void custBindNavSaveItem_Click(object sender, EventArgs e)
07 {
08
09 }
The two tables in the northwind DataSet are updated frequently.
You need to ensure that the application commits all the updates to the two tables before it
saves the data to the database.Which code segment should you insert at line 08?

What should you do?

You create an application by using Microsoft Visual Studio .NET 2008 and the .NET Framework 3.5. The application includes a Windows Forms user interface. The user interface connects to the business logic layer and binds the controls directly to the objects that are exposed by the business logic layer. A class in the business logic layer performs validation of input values and implements the IDataErrorInfo interface. You need to provide feedback to users when the business logic layer reports a validation error. What should you do?

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. Your responsibilities at Domain.com include the design and development of applications. You are currently developing a business logic component that is used in a line-of-business (LOB) application. The business logic component calls a Web method named SeeCustomer in an Extensible Markup Language (XML) Web service. The SeeCustomer Web method throws an exception of a type SoapExtension in the event of the specified customer being non-existent. Now, when this exception is thrown, you must call a Web method named NewCustomer. To this end you need to implement the appropriate exception handling mechanism to meet this requirement.

What should you do?

What should you do?

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

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

* The layout that must be applied to the pages in the application can be selected by the developers.
* The layout of the pages can be modified by the developers without the source code modification.
* A consistent page layout is maintained.

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 consumes a Microsoft Windows Communication Foundation
(WCF) service.The WCF service exposes the following method.
[WebInvoke]
string UpdateCustomerDetails(string custID);
The application hosts the WCF service by using the following code segment.
WebServiceHost host = new WebServiceHost(typeof(CService), new Uri(“http://win/”));
ServiceEndpoint ep = host.AddServiceEndpoint(typeof(ICService), new WebHttpBinding(),
“”);
You need to invoke the UpdateCustomerDetails method. 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 are designing a data contract for a Windows Communication foundation (WCF) service that will be hosted by the application. You need to ensure that the data contract meets the following requirements:

It does not support Schema versioning.
It allows additional contract and additional elements to be included over time. It allows the client applications to submit messages that contain additional elements without error.

What should you do?