Microsoft Exam Questions

Which of the following options are TRUE with regards to the ListBox control?

You are employed as an application developer at ABC.com. You make use of Microsoft .NET
Framework 4 to develop Windows Forms applications.
You are in the process of developing a new application, named ABCApp21. You then created a
class and named it Client. You also configured the use of two properties named Name, and
Surname. You then assigned the family key to a newly created a resource, which hosts a
collection of Client objects.
You then wrote the code shown below to create a ListBox control:
<ListBox ItemsSource=”{StaticResource family}”>
<ListBox.ItemTemplate>
<DataTemplate>
<TextBox Text=”{Binding Name}” />
<TextBox Text=”{Binding Surname}” />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
Which of the following options are TRUE with regards to the ListBox control?

A.
The TextBox control includes a TextBox that has been bound to the data of the Name property.

B.
It contains a ListBox that has been bound to the data of the Name property.

C.
The TextBox control includes a TextBox that has been bound to the data of the Surname
property.

D.
It contains a ListBox that has been bound to the data of the Surname property.

Explanation: