PrepAway - Latest Free Exam Questions & Answers

Author: admin

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?

What should you do to change the control so that it will allow the Certkiller .com uses to change the selected

You have just included a DateTimePicker control to a form.
You then set the format property to Time.
During the cause of the day, you check how the DateTimePicker control is working, and learnt that it does not allow the Domain.com users to change the selected time. What should you do to change the control so that it will allow the Domain.com uses to change the selected time?

Which two actions should you perform?

You are creating a Windows user control named UrlRequest. UrlRequest contains a ComboBox control named cboUrl and a Button control named btnGo. When the user clicks btnGo, you want the UrlRequest control to provide notification that the value of cboUrl changed. You need to implement the notification functionality. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Which code segment should you use?

You are creating a Windows Forms application. You implement the asynchronous design pattern by using a delegate named DataUpdateHandler. DataUpdateHandler executes a method named DataUpdater. You create an instance of the DataUpdateHandler that has the variable name Updater. DataUpdater uses a DataSet class as a parameter and returns an integer value that indicates the number of rows that have been updated. You need to use a method name DisplayResult to display the result when the database update is complete. Which code segment should you use?