Free Cheat-test Samples and Demo Questions Download
Adobe exams Adobe
Apple exams Apple
Avaya exams Avaya
Check Point exams Check Point
Cisco exams Cisco
Citrix exams Citrix
CIW exams CIW
CompTIA exams CompTIA
CWNP exams CWNP
EC-Council exams EC-Council
EMC exams EMC
Exin exams Exin
Fortinet exams Fortinet
GIAC exams GIAC
Hitachi exams Hitachi
HP exams HP
IBM exams IBM
Isaca exams Isaca
ISC exams ISC
ISEB exams ISEB
Juniper exams Juniper
LPI exams LPI
McAfee exams McAfee
Microsoft exams Microsoft
Oracle exams Oracle
PMI exams PMI
Riverbed exams Riverbed
SNIA exams SAP
Sun exams SAS
Symantec exams Symantec
VMware exams VMware
All certification exams

Microsoft 70-562(VB) Exam - Cheat-Test.com

Free 70-562(VB) Sample Questions:

1. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a Web page that contains the following two XML fragments. (Line numbers are included for reference only.)
01 <script runat="server">
02
03 </script>
04 <asp:ListView ID="ListView1" runat="server"
05 DataSourceID="SqlDataSource1"
06
07 ?>
08 <ItemTemplate>
09 <td>
10 <asp:Label ID="LineTotalLabel" runat="server"
11 Text='<%# Eval("LineTotal") %>' />
12 </td>
13 </ItemTemplate>
The SqlDataSource1 object retrieves the data from a Microsoft SQL Server 2005 database table. The database table has a column named LineTotal.
You need to ensure that when the size of the LineTotal column value is greater than seven characters, the column is displayed in red color.
What should you do?
A. Insert the following code segment at line 06.
OnItemDataBound="FmtClr"
Insert the following code segment at line 02.
Protected Sub FmtClr(ByVal sender As Object, _
ByVal e As ListViewItemEventArgs)
Dim LineTotal As Label = _
DirectCast(e.Item.FindControl("LineTotalLabel"), Label)
If LineTotal IsNot Nothing Then
If LineTotal.Text.Length > 7 Then
LineTotal.ForeColor = Color.Red
Else
LineTotal.ForeColor = Color.Black
End If
End If
End Sub
B. Insert the following code segment at line 06.
OnItemDataBound="FmtClr"
Insert the following code segment at line 02.
Protected Sub FmtClr(ByVal sender As Object, _
ByVal e As ListViewItemEventArgs)
Dim LineTotal As Label = _
DirectCast(e.Item.FindControl("LineTotal"), Label)
If LineTotal.Text.Length > 7 Then
LineTotal.ForeColor = Color.Red
Else
LineTotal.ForeColor = Color.Black
End If
End Sub
C. Insert the following code segment at line 06.
OnDataBinding="FmtClr"
Insert the following code segment at line 02.
Protected Sub FmtClr(ByVal sender As Object, _
ByVal e As EventArgs)
Dim LineTotal As New Label()
LineTotal.ID = "LineTotal"
If LineTotal.Text.Length > 7 Then
LineTotal.ForeColor = Color.Red
Else
LineTotal.ForeColor = Color.Black
End If
End Sub
D. Insert the following code segment at line 06.
OnDataBound="FmtClr"
Insert the following code segment at line 02.
Protected Sub FmtClr(ByVal sender As Object, _
ByVal e As EventArgs)
Dim LineTotal As New Label()
LineTotal.ID = "LineTotalLabel"
If LineTotal.Text.Length > 7 Then
LineTotal.ForeColor = Color.Red
Else
LineTotal.ForeColor = Color.Black
End If
End Sub
Answer: A

2. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a Web form and add the following code fragment.
<asp:Repeater ID="rptData" runat="server"
DataSourceID="SqlDataSource1"
ItemDataBound="rptData_ItemDataBound">
<ItemTemplate>
<asp:Label ID="lblQuantity" runat="server"
Text='<%# Eval("QuantityOnHand") %>' />
</ItemTemplate>
</asp:Repeater>
The SqlDataSource1 DataSource control retrieves the Quantity column values from a table named Products.
You write the following code segment to create the rptData_ItemDataBound event handler. (Line numbers are included for reference only.)
01 Protected Sub rptData_ItemDataBound(ByVal sender As Object, _
02 ByVal e As RepeaterItemEventArgs)
03 ?
04 If lbl IsNot Nothing Then
05 If Integer.Parse(lbl.Text) < 10 Then
06 lbl.ForeColor = Color.Red
07 End If
08 End If
09 End Sub
You need to retrieve a reference to the lblQuantity Label control into a variable named lbl.
Which code segment should you insert at line 03?
A. Dim lbl As Label = _
TryCast(Page.FindControl("lblQuantity"), Label)
B. Dim lbl As Label = _
TryCast(e.Item.FindControl("lblQuantity"), Label)
C. Dim lbl As Label = _
TryCast(rptData.FindControl("lblQuantity"), Label)
D. Dim lbl As Label = _
TryCast(e.Item.Parent.FindControl("lblQuantity"), Label)
Answer: B

3. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
Your application has a user control named UserCtrl.ascx. You write the following code fragment to create a Web page named Default.aspx.
<%@ Page Language="VB" AutoEventWireup="true"
CodeFile="Default.aspx.vb" Inherits="_Default" %>
<html>
...
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="lblHeader" runat="server"></asp:Label>
<asp:Label ID="lbFooter" runat="server"></asp:Label>
</div>
</form>
</body>
</html>
You need to dynamically add the UserCtrl.ascx control between the lblHeader and lblFooter Label controls.
What should you do?
A. Write the following code segment in the Init event of the Default.aspx Web page.
Dim ctrl As Control = LoadControl("UserCtrl.ascx")
Me.Controls.AddAt(1, ctrl)
B. Write the following code segment in the Init event of the Default.aspx Web page.
Dim ctrl As Control = LoadControl("UserCtrl.ascx")
lblHeader.Controls.Add(ctrl)
C. Add a Literal control named Ltrl between the lblHeader and lblFooter label controls.
Write the following code segment in the Init event of the Default.aspx Web page.
Dim ctrl As Control = LoadControl("UserCtrl.ascx")
D. Add a PlaceHolder control named PlHldr between the lblHeader and lblFooter label controls.
Write the following code segment in the Init event of the Default.aspx Web page.
Dim ctrl As Control = LoadControl("UserCtrl.ascx")
PlHldr.Controls.Add(ctrl)
Answer: D

4. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create two user controls named UserCtrlA.ascx and UserCtrlB.ascx. The user controls postback to the server.
You create a new Web page that has the following ASPX code.
<asp:CheckBox ID="Chk" runat="server"
oncheckedchanged="Chk_CheckedChanged" AutoPostBack="true" />
<asp:PlaceHolder ID="PlHolder" runat="server"></asp:PlaceHolder>
To dynamically create the user controls, you write the following code segment for the Web page.
Public Sub LoadControls()
If ViewState("CtrlA") IsNot Nothing Then
Dim c As Control
If CBool(ViewState("CtrlA")) = True Then
c = LoadControl("UserCtrlA.ascx")
Else
c = LoadControl("UserCtrlB.ascx")
End If
c.ID = "Ctrl"
PlHolder.Controls.Add(c)
End If
End Sub
Protected Sub Chk_CheckedChanged(ByVal sender As Object, _
ByVal e As EventArgs)
ViewState("CtrlA") = Chk.Checked
PlHolder.Controls.Clear()
LoadControls()
End Sub
You need to ensure that the user control that is displayed meets the following requirements:
·It is recreated during postback.
·It retains its state.
Which method should you add to the Web page?
A. Protected Overloads Overrides Function _
SaveViewState() As Object
LoadControls()
Return MyBase.SaveViewState()
End Function
B. Protected Overloads Overrides _
Sub Render(ByVal writer As HtmlTextWriter)
LoadControls()
MyBase.Render(writer)
End Sub
C. Protected Overloads Overrides Sub _
OnLoadComplete(ByVal e As EventArgs)
MyBase.OnLoadComplete(e)
LoadControls()
End Sub
D. Protected Overloads Overrides Sub _
LoadViewState(ByVal savedState As Object)
MyBase.LoadViewState(savedState)
LoadControls()
End Sub
Answer: D

5. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create the following controls:
·A composite custom control named MyControl.
·A templated custom control named OrderFormData.
You write the following code segment to override the method named CreateChildControls() in the
MyControl class. (Line numbers are included for reference only.)
01 Protected Overloads Overrides Sub CreateChildControls()
02 Controls.Clear()
03 Dim oFData As New OrderFormData("OrderForm")
04
05 End Sub
You need to add the OrderFormData control to the MyControl control.
Which code segment should you insert at line 04?
A. Controls.Add(oFData)
Template.InstantiateIn(Me)
B. Template.InstantiateIn(oFData)
Controls.Add(oFData)
C. Me.Controls.Add(oFData)
Me.TemplateControl = DirectCast(Template, TemplateControl)
D. oFData.TemplateControl = DirectCast(Template, TemplateControl)
Controls.Add(oFData)
Answer: B

6. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a composite custom control named MyControl.
You need to add an instance of the OrderFormData control to the MyControl control.
Which code segment should you use?
A. Protected Overloads Overrides Sub _
CreateChildControls()
Controls.Clear()
Dim oFData As New OrderFormData("OrderForm")
Controls.Add(oFData)
End Sub
B. Protected Overloads Overrides Sub _
RenderContents(ByVal writer As HtmlTextWriter)
Dim oFData As New OrderFormData("OrderForm")
oFData.RenderControl(writer)
End Sub
C. Protected Overloads Overrides Sub _
EnsureChildControls()
Controls.Clear()
Dim oFData As New OrderFormData("OrderForm")
oFData.EnsureChildControls()
If Not ChildControlsCreated Then
CreateChildControls()
End If
End Sub
D. Protected Overloads Overrides Function _
CreateControlCollection() As ControlCollection
Dim controls As New ControlCollection(Me)
Dim oFData As New OrderFormData("OrderForm")
controls.Add(oFData)
Return controls
End Function
Answer: A

7. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a custom control named OrderForm.
You write the following code segment.
Public Delegate Sub _
CheckOrderFormEventHandler(ByVal e As EventArgs)
Private Shared ReadOnly CheckOrderFormKey As New Object()
public event CheckOrderFormEventHandler
Public Custom Event CheckOrderForm As CheckOrderFormEventHandler
AddHandler(ByVal value As CheckOrderFormEventHandler)
Events.[AddHandler](CheckOrderFormKey, value)
End AddHandler
RemoveHandler(ByVal value As CheckOrderFormEventHandler)
Events.[RemoveHandler](CheckOrderFormKey, value)
End RemoveHandler
RaiseEvent(ByVal e As EventArgs)
End RaiseEvent
End Event
You need to provide a method that enables the OrderForm control to raise the CheckOrderForm event.
Which code segment should you use?
A. Protected Overridable Sub _
OnCheckOrderForm(ByVal e As EventArgs)
Dim checkOrderForm As CheckOrderFormEventHandler = _
DirectCast(Events(GetType(CheckOrderFormEventHandler)), _
CheckOrderFormEventHandler)
RaiseEvent CheckOrderForm(e)
End Sub
B. Protected Overridable Sub _
OnCheckOrderForm(ByVal e As EventArgs)
Dim checkOrderForm As CheckOrderFormEventHandler = _
TryCast(Events(CheckOrderFormKey), _
CheckOrderFormEventHandler)
RaiseEvent CheckOrderForm(e)
End Sub
C. Private checkOrderForm As New _
CheckOrderFormEventHandler(AddressOf _
checkOrderFormCallBack)
Protected Overridable Sub _
OnCheckOrderForm(ByVal e As EventArgs)
If checkOrderForm IsNot Nothing Then
checkOrderForm(e)
End If
End Sub
D. Private checkOrderForm As New _
CheckOrderFormEventHandler(AddressOf _
checkOrderFormCallBack)
Protected Overridable Sub _
OnCheckOrderForm(ByVal e As EventArgs)
If checkOrderForm IsNot Nothing Then
RaiseBubbleEvent(checkOrderForm, e)
End If
End Sub
Answer: B

8. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You add a TextBox control named TextBox1.
You write the following code segment for validation.
Protected Sub _
CustomValidator1_ServerValidate(ByVal source As Object, _
ByVal args As ServerValidateEventArgs)
Dim dt As DateTime = _
IIf([String].IsNullOrEmpty(args.Value), _
DateTime.Now, Convert.ToDateTime(args.Value))
args.IsValid = (DateTime.Now - dt).Days < 10
End Sub
You need to validate the value of TextBox1.
Which code fragment should you add to the Web page?
A. <asp:CustomValidator ID="CustomValidator1" runat="server"
ControlToValidate="TextBox1"
ValidateEmptyText="True"
onservervalidate="CustomValidator1_ServerValidate">
</asp:CustomValidator>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1"
InitialValue="<%= DateTime.Now; %>" >
</asp:RequiredFieldValidator>
B. <asp:CustomValidator ID="CustomValidator1" runat="server"
ControlToValidate="TextBox1"
ValidateEmptyText="True"
onservervalidate="CustomValidator1_ServerValidate">
</asp:CustomValidator>
<asp:CompareValidator ID="CompareValidator1"
runat="server"
Type="Date" EnableClientScript="true"
ControlToValidate="TextBox1" Operator="DataTypeCheck" >
</asp:CompareValidator>
C. <asp:CustomValidator ID="CustomValidator1" runat="server"
ControlToValidate="TextBox1"
onservervalidate="CustomValidator1_ServerValidate">
</asp:CustomValidator>
<asp:RequiredFieldValidator
ID="RequiredFieldValidator1" runat="server"
ControlToValidate="TextBox1"
EnableClientScript="false"
InitialValue="<%= DateTime.Now; %>" >
</asp:RequiredFieldValidator>
D. <asp:CustomValidator ID="CustomValidator1" runat="server"
ControlToValidate="TextBox1"
ValidateEmptyText="True"
onservervalidate="CustomValidator1_ServerValidate">
</asp:CustomValidator>
<asp:CompareValidator ID="CompareValidator1"
runat="server"
Type="Date" EnableClientScript="true"
ControlToValidate="TextBox1"
ValueToCompare="<%= DateTime.Now; %>">
</asp:CompareValidator>
Answer: B

9. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You derive a new validation control from the BaseValidator class.
The validation logic for the control is implemented in the Validate method in the following manner.
Protected Overloads Function Validate( _
ByVal value As String) As Boolean
...
End Function
You need to override the method that validates the value of the related control.
Which override method should you use?
A. Protected Overloads Overrides Function EvaluateIsValid() As Boolean
Dim value As String = _
GetControlValidationValue(Me.Attributes("AssociatedControl"))
Dim isValid As Boolean = Validate(value)
Return isValid
End Function
B. Protected Overloads Overrides _
Function ControlPropertiesValid() As Boolean
Dim value As String = _
GetControlValidationValue(Me.ValidationGroup)
Dim isValid As Boolean = Validate(value)
Return isValid
End Function
C. Protected Overloads Overrides Function EvaluateIsValid() As Boolean
Dim value As String = _
GetControlValidationValue(Me.ControlToValidate)
Dim isValid As Boolean = Validate(value)
Return isValid
End Function
D. Protected Overloads Overrides Function ControlPropertiesValid() As Boolean
Dim value As String = _
GetControlValidationValue(Me.Attributes("ControlToValidate"))
Dim isValid As Boolean = Validate(value)
Me.PropertiesValid = isValid
Return True
End Function
Answer: C

10. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You add an XmlDataSource control named XmlDataSource1 to the Web page. XmlDataSource1 is bound to an XML document with the following structure.
< xml version="1.0" encoding="utf-8" ?>
<clients>
<client ID="1" Name="John Evans" />
<client ID="2" Name="Mike Miller"/>
...
</clients>
You also write the following code segment in the code-behind file of the Web page.
Protected Sub BulletedList1_Click(ByVal sender As _
Object, ByVal e As BulletedListEventArgs)
'...
End Sub
You need to add a BulletedList control named BulletedList1 to the Web page that is bound to
XmlDataSource1.
Which code fragment should you use?
A. <asp:BulletedList ID="BulletedList1" runat="server"
DisplayMode="LinkButton" DataSource="XmlDataSource1"
DataTextField="Name" DataValueField="ID"
onclick="BulletedList1_Click">
</asp:BulletedList>
B. <asp:BulletedList ID="BulletedList1" runat="server"
DisplayMode="HyperLink" DataSourceID="XmlDataSource1"
DataTextField="Name" DataMember="ID"
onclick="BulletedList1_Click">
</asp:BulletedList>
C. <asp:BulletedList ID="BulletedList1" runat="server"
DisplayMode="LinkButton" DataSourceID="XmlDataSource1"
DataTextField="Name" DataValueField="ID"
onclick="BulletedList1_Click">
</asp:BulletedList>
D. <asp:BulletedList ID="BulletedList1" runat="server"
DisplayMode="HyperLink" DataSourceID="XmlDataSource1"
DataTextField="ID" DataValueField="Name"
onclick="BulletedList1_Click">
</asp:BulletedList>
Answer: C

11. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You write the following code fragment.
<asp:ListBox SelectionMode="Multiple"
ID="ListBox1" runat="server">
</asp:ListBox>
<asp:ListBox ID="ListBox2" runat="server">
</asp:ListBox>
<asp:Button ID="Button1" runat="server"
Text="Button" onclick="Button1_Click" />
You need to ensure that when you click the Button1 control, a selected list of items move from the ListBox1
control to the ListBox2 control.
Which code segment should you use?
A. foreach (ListItem li in ListBox1.Items) {
if (li.Selected) {
ListBox2.Items.Add(li);
ListBox1.Items.Remove(li);
}
}
B. foreach (ListItem li in ListBox1.Items) {
if (li.Selected) {
li.Selected = false;
ListBox2.Items.Add(li);
ListBox1.Items.Remove(li);
}
}
C. foreach (ListItem li in ListBox1.Items) {
if (li.Selected) {
li.Selected = false;
ListBox2.Items.Add(li);
}
}
foreach (ListItem li in ListBox2.Items) {
if (ListBox1.Items.Contains(li))
ListBox1.Items.Remove(li);
}
D. foreach (ListItem li in ListBox1.Items) {
if (li.Selected) {
li.Selected = false;
ListBox2.Items.Add(li);
}
}
foreach (ListItem li in ListBox1.Items) {
if (ListBox2.Items.Contains(li))
ListBox1.Items.Remove(li);
}
Answer: C

12. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You write the following code fragment.
<asp:ListBox SelectionMode="Multiple"
ID="ListBox1" runat="server">
</asp:ListBox>
<asp:ListBox ID="ListBox2" runat="server">
</asp:ListBox>
<asp:Button ID="Button1" runat="server"
Text="Button" onclick="Button1_Click" />
You need to ensure that when you click the Button1 control, a selected list of items move from the ListBox1
control to the ListBox2 control.
Which code segment should you use?
A. For Each li As ListItem In ListBox1.Items
If li.Selected Then
ListBox2.Items.Add(li)
ListBox1.Items.Remove(li)
End If
Next
B. For Each li As ListItem In ListBox1.Items
If li.Selected Then
li.Selected = False
ListBox2.Items.Add(li)
ListBox1.Items.Remove(li)
End If
Next
C. For Each li As ListItem In ListBox1.Items
If li.Selected Then
li.Selected = False
ListBox2.Items.Add(li)
End If
Next
For Each li As ListItem In ListBox2.Items
If ListBox1.Items.Contains(li) Then
ListBox1.Items.Remove(li)
End If
Next
D. For Each li As ListItem In ListBox1.Items
If li.Selected Then
li.Selected = False
ListBox2.Items.Add(li)
End If
Next
For Each li As ListItem In ListBox1.Items
If ListBox2.Items.Contains(li) Then
ListBox1.Items.Remove(li)
End If
Next
Answer: C

13. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You write the following code fragment.
<asp:DropDownList AutoPostBack="true"
ID="DropDownList1" runat="server"
onselectedindexchanged=
"DropDownList1_SelectedIndexChanged">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
<asp:ListItem>3</asp:ListItem>
</asp:DropDownList>
You also add a MultiView control named MultiView1 to the Web page. MultiView1 has three child View controls.
You need to ensure that you can select the View controls by using the DropDownList1 DropDownList control.
Which code segment should you use?
A. Dim idx As Integer = DropDownList1.SelectedIndex
MultiView1.ActiveViewIndex = idx
B. Dim idx As Integer = DropDownList1.SelectedIndex
MultiView1.Views(idx).Visible = True
C. Dim idx As Integer = Integer.Parse(DropDownList1.SelectedValue)
MultiView1.ActiveViewIndex = idx
D. Dim idx As Integer = Integer.Parse(DropDownList1.SelectedValue)
MultiView1.Views(idx).Visible = True
Answer: A

14. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
To add a Calendar server control to a Web page, you write the following code fragment.
<asp:Calendar SelectionMode="DayWeek"
ID="Calendar1" runat="server">
</asp:Calendar>
You need to disable the non-week days in the Calendar control.
What should you do?
A. Add the following code segment to the Calendar1 DayRender event handler.
If e.Day.IsWeekend Then
e.Day.IsSelectable = False
End If
B. Add the following code segment to the Calendar1 DayRender event handler.
If e.Day.IsWeekend Then
If Calendar1.SelectedDates.Contains(e.Day.Date) Then
Calendar1.SelectedDates.Remove(e.Day.Date)
End If
End If
C. Add the following code segment to the Calendar1 SelectionChanged event handler.
Dim list As New List(Of DateTime)()
For Each st As DateTime In TryCast(sender, Calendar).SelectedDates
If st.DayOfWeek = DayOfWeek.Saturday OrElse _
st.DayOfWeek = DayOfWeek.Sunday Then
list.Add(st)
End If
Next
For Each dt As DateTime In list
TryCast(sender, Calendar).SelectedDates.Remove(dt)
Next
D. Add the following code segment to the Calendar1 DataBinding event handler.
Dim list As New List(Of DateTime)()
For Each st As DateTime In TryCast(sender, Calendar).SelectedDates
If st.DayOfWeek = DayOfWeek.Saturday OrElse _
st.DayOfWeek = DayOfWeek.Sunday Then
list.Add(st)
End If
Next
For Each dt As DateTime In list
TryCast(sender, Calendar).SelectedDates.Remove(dt)
Next
Answer: A

15. You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You define the following class.
Public Class Product
Public Property Price() As Decimal
Get
End Get
Set(ByVal value As Decimal)
End Set
End Property
End Class
Your application contains a Web form with a Label control named lblPrice.
You use a StringReader variable named xmlStream to access the following XML fragment.
<Product>
<Price>35</Price>
</Product>
You need to display the price of the product from the XML fragment in the lblPrice Label control.
Which code segment should you use?
A. Dim dt As New DataTable()
dt.ExtendedProperties.Add("Type", "Product")
dt.ReadXml(xmlStream)
lblPrice.Text = dt.Rows(0)("Price").ToString()
B. Dim xr As XmlReader = XmlReader.Create(xmlStream)
Dim boughtProduct As Product = TryCast( _
xr.ReadContentAs(GetType(Product), Nothing), Product)
lblPrice.Text = boughtProduct.Price.ToString()
C. Dim xs As New XmlSerializer(GetType(Product))
Dim boughtProduct As Product = TryCast( _
xs.Deserialize(xmlStream), Product)
lblPrice.Text = boughtProduct.Price.ToString()
D. Dim xDoc As New XmlDocument()
xDoc.Load(xmlStream)
Dim boughtProduct As Product = xDoc.OfType(Of Product)().First()
lblPrice.Text = boughtProduct.Price.ToString()
Answer: C


© 2014 Cheat-Test.com, All Rights Reserved