PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to ensure that the code opens the dialog box

You are creating an application page that will open a dialog box. The application page uses a
custom master page. You write the following code segment. (Line numbers are included for
reference only.) 01 < script type=”text/javascript” > 02 function DialogCallback ( dialogResult,
retumValue ){> 03 function OpenEditDialog (id){ 04 var options = { url:” http://intranet/Jayouts
/MsgToShow.aspx, width: 300, 05 height: 300, 06 dialogReturnValueCallback : DialogCallback 07
}; 08 SP.UI.ModalDialog.showModalDialog (options); 09 } 10 < /script > You need to ensure that
the code opens the dialog box. What should you do?

You need to prepare the server so that the base image can be captured

HOTSPOT
You have an existing server that runs Windows Server. You plan to create a base image of this server. You will
use this base image to prepare several virtual servers for future use. After the base image is prepared, you will
capture it by using the Azure management portal.
You must use the System Preparation Tool (Sysprep) to prepare the server so that the base image can be
captured.
You need to prepare the server so that the base image can be captured.
What should you do? To answer, configure the appropriate options in the dialog box in the answer area.

You need to ensure that the result sets are returned as strongly typed values

You use Microsoft Visual Studio 2010 and Microsoft ADO.NET Framework 4 to create an application.
The application connects to a Microsoft SQL Server 2008 database. You use the ADO.NET LINQ to
SQL model to retrieve data from the database. You use stored procedures to return multiple result
sets. You need to ensure that the result sets are returned as strongly typed values. What should you
do?

You need to ensure that the COM components can be replaced without impacting the existing user interface (UI)

You are designing an n-tier Windows application by using Microsoft .NET Framework 4,
Microsoft Visual Studio 2010, and Microsoft SQL Server 2008. The application will replace
an existing client/server application. The existing application was created by using Microsoft
Visual Basic 6.0 and consists of a series of COM components that access a SQL Server
database. You plan to move the existing COM components into a Windows Communication
Foundation (WCF) tier. You need to ensure that the COM components can be replaced
without impacting the existing user interface (UI) tier. You also need to ensure that the COM
components can be replaced separately. What should you do?

Which code segment should you use?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. The
application connects to a Microsoft SQL Server database. You use the ADO.NET LINQ to SQL model
to retrieve data from the database. The application contains the Category and Product entities, as
shown in the following exhibit.

You need to ensure that LINQ to SQL executes only a single SQL statement against the database. You
also need to ensure that the query retrieves the list of categories and the list of products. Which
code segment should you use?