PrepAway - Latest Free Exam Questions & Answers

Category: 70-526

Exam 70-526: TS: Microsoft .NET Framework 2.0 – Windows-Based Client Development.

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?

Which code segment should you use?

A Windows Forms application reads the following XML file.
<?xml version="1.0"?>
<x:catalog xmlns:x="urn:books">
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer’s Guide</title>
</book>
<book id="bk102">
<author>Ralis, Kim</author>
<title>Midnight Rain</title>
</book>
</x:catalog>

The form initialization loads this file into an XmlDocument object named docBooks. You need to populate a ListBox control named lstBooks with the concatenated book ID and title of each book. Which code segment should you use?


Page 5 of 15« First...34567...10...Last »