PrepAway - Latest Free Exam Questions & Answers

Author: admin

Which of the following event should you handle so that you can highlight the available

You are busy to develop a Microsoft Windows Forms application that allows the computer engineers
to design circuit boards for different types of hardware. You then create a custom control that portrays the design surface.
Which of the following event should you handle so that you can highlight the available areas on the design surface where a component can be dropped?

What should you do to ensure that users can perform similar drag-and-drop operations between the different app

You are creating a complex data-entry Windows Forms application. The application allows users to move text between text boxes by using drag-and-drop operations. Your company also has other data-entry applications. You need to ensure that users can perform similar drag-and-drop operations between the different applications.
What should you do?

What should you do to automatically rollback the installation is the component throws a SqlException instance?

You are working as an application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. Domain.com uses Visual Studio 2005 as an application platform. You as the developer of Domain.com use a client computer named Certkiller -WS209 as developing collateral.
You are busy creating a class that derives from Installer. The class that you created is used by Microsoft Windows Forms setup application to install a custom component which uses an existing Microsoft SQL Server 2005 database. The component throws a SqlException instance when it cannot connect to the database during installation.
What should you do to automatically rollback the installation is the component throws a SqlException instance?

Which exception type should you use if the database does not exist at installation time…

You are working as an application developer at Domain.com. The Domain.com network consists of a single Active Directory domain named Domain.com. Domain.com uses Visual Studio 2005 as an application platform. Domain.com consists of a Development department.
You as the developer of Domain.com use a client computer named Certkiller -WS209 as developing collateral.
You are busy creating a class that derives from Installer. The class that you created is used by Microsoft Windows Forms application to install a custom component which uses an existing Micrsoft Access database.
Which exception type should you use if the database does not exist at installation time and you need to throw an exception and have the installation rolled back?

What should you do to change the dialog box so that the XML in generated correctly?

You have received instructions to create a DataSet diagram that models a one-to-many relationship between patients and treatments as seen in the exhibit:
When you serialize instance of the created DataSet component you, you received the following XML:
<Patient>
<PatientID>526</PatientID>
<PatientName>Amy Walsh</PatientName>
</Patient>
<Treatment>
<TreatmentID> 1000</TreatmentID>
<PatientID>526</PatientID>
<Code>DTP</Code>
</Treatment>
The XLM should be as follows
<Patient>
<PatientID>526</PatientID>
<PatientName>Amy Walsh</PatientName>
<Treatment>
<TreatmentID> 1000</PatientID>
<Code>DTP</Code>
</Treatment>
</Patient>
What should you do to change the dialog box so that the XML in generated correctly?

What should you do to display changes to the database as they happen without polling the database?

You are creating a Windows Forms application. The application displays data from a Microsoft SQL Server 2005 database in a DataGridView control. The DataGridView control is populated by a data table. The data table is filled by using a SqlDataAdapter object. You need to display changes to the database as they happen without polling the database. What should you do?

What should you do to ensure that when the IncrementSession5Times method is run, the following output is displ

A Console Application calls a Web service named SessionStateService five times, sequentially.
The IncrementSessionCounter Web service method increments and returns an integer value that is held in a cookie.

(Line numbers are included for reference only.)
01 void IncrementSession5Times() {
02 SessionStateService service = null;
03 …
04 for (int i = 0; i < 5; i++) {
05 …
06 Console.WriteLine("Loop Pass {0} – result = {1}",
07 i,
08 service.IncrementSessionCounter());
09 }
10 }

You need to ensure that when the IncrementSession5Times method is run, the following output is displayed.

Loop Pass 0 – result = 1
Loop Pass 1 – result = 2
Loop Pass 2 – result = 3
Loop Pass 3 – result = 4
Loop Pass 4 – result = 5

What should you do?

What should you do to ensure that the Web Services Description Language (WSDL) for the Web service describes t

You are creating a Web service.
The Web service must be configured to receive the following message.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<givenName xmlns="urn:SampleNS">given name</givenName>
<surname xmlns="urn:SampleNS">surname</surname>
</soap:Body>
</soap:Envelope>

You need to ensure that the Web Services Description Language (WSDL) for the Web service describes the message.

What should you do?