1.
You create a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application tracks stock prices in real time. You need to bind a label to the Price property of the Stock class. You also need to ensure that the label reflects any change in the Price property.
Which code segment should you use?
2.
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application contains a Person object with a FirstName property. You bind the Person object to a data source that is used in several controls. You need to ensure that the data source is updated whenever the
FirstName property changes.
What should you do?
3.
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application contains a TextBox control that is data bound to a data source.
You need to ensure that the following requirements are met:
When the data source changes, the TextBox control automatically reflects the change.
When the TextBox control changes, the data source is not automatically updated.
What should you do?
4.
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You create the following class.
public class Cars : Collection
{
protected override void ClearItems()
{
//...
}

protected override void InsertItem(int index, Car item)
{
//...
}
}
You bind a Label control and a ListBox control to the Cars class by using the following XAML code fragment.

5.
You are creating a Windows Presentation Foundation application to track customer orders.
You use Microsoft .NET Framework 3.5 to create the application. The application contains an Order class. The
Order class has two public properties named OrderDate and OrderID. The application also contains an
ObservableCollection collection of Order objects. This collection is named OrderItems. You write the following XAML code fragment.

You add two ListBox controls to select orders based on the OrderID or the OrderDate properties. One ListBox control displays order dates and the other ListBox control displays order numbers. You need to bind the two
ListBox controls so that the item selected in one control is reflected in the other control.
Which XAML code fragment should you use?
6.
You are creating a Windows Presentation Foundation GUI application by using Microsoft .NET Framework 3.5.
The application will process legal consent. You use the following code fragment to create a check box and two text boxes.

VerticalAlignment="Top" Text=" " />
VerticalAlignment="Top" Text= " " />


The text boxes are used to enter the age of the applicants. You need to ensure that if you specify a value of 18 or more in the text boxes, the check box is selected.
Which code segment should you use?
7.
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You are creating an XAML page for the application. The page will display information about cars. The information is stored in a static resource named cars. You need to ensure that the page can display the image of each car in a ListBox control.
Which XAML code fragment should you use?
8.
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application processes hospital medical records. The application contains a class named Patient that has a property named Age. You enter information about the patient in a window named Medical Form. In the window,
you enter the age of the patient in a textbox named txtAge. You need to ensure that the application meets the following requirements:
It updates the Age property automatically when you enter the age of the patient in the txtAge textbox. It updates the txtAge textbox automatically when you change the Age property of the Patient class.
Which XAML code fragment should you use?
9.
You are creating a Windows Presentation Foundation application for a car dealer. You use Microsoft .NET
Framework 3.5 to create the application.
You are creating a window that will display a list of available cars. The list will be sorted on the basis of the
Make property. You try to run the XAML code fragment for the window. The following section of the code fragment does not compile.
(Line numbers are included for reference only.)
01
02 ...
03
05
06
07

08

09

You receive the following error message: "Type 'SortDescriptions' was not found."
You need to ensure that the XAML code fragment sorts the list of available cars correctly.
What should you do?
10.
You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
You write the following XAML code fragment.
...

You need to ensure that the Rectangle object shifts diagonally downwards when a user clicks it.
Which XAML code fragment should you use?