PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which code segment should you use?

You are developing a client application that consumes a Windows Communication
Foundation (WCF) service. You use the svcutil.exe utility to create a proxy for the service.
You use the svcutil.exe switches that generate asynchronous calls. GetFlight is a service
operation that takes no parameters and returns a string. The GetFlightCallback method
must be called when the service operation returns. You create an instance of the client

proxy with the following code. var client = new TravelServiceClient(); You need to ensure
that a callback is received when the GetFlight operation is called asynchronously. Which
code segment should you use?

What should you open?

You send a sales quotation to a customer. The customer requests several changes to the
original quotation, which results in a total of five different quotations being sent to the
customer. Each quotation includes modifications to the original quantity and the original
price. The customer accepts the third quotation that was sent You need to review the details
of the third quotation. What should you open?

You need to ensure that classes in the Web application project always reference the most recent version of the

You use the ASP.NET Web Application template to create an application in a new Visual Studio
solution. The project uses types that are defined in a class library project. Source code for the class
library is frequently modified. You need to ensure that classes in the Web application project always
reference the most recent version of the class library types. What should you do?

Which code segment should you add at line 07?

You are developing an ASP.NET Web page.
The page contains the following markup.
<asp:GridView ID=”gvModels” runat=”server”
onrowdatabound=”gvModels_RowDataBound”
AutoGenerateColumns=”false”>
<Columns>
<asp:BoundField DataField=”Name” HeaderText=”Model” />
<asp:TemplateField>
<ItemTemplate>
<asp:Image ID=”img” runat=”server” />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
The pages code-behind file includes the following code segment. (Line numbers are included for
reference only.)
01 Private Sub gvModels_RowDataBound(ByVal sender As Object, _
02 ByVal e As GridViewRowEventArgs) _
03 Handles gvModels.RowDataBound
04 If (e.Row.RowType = DataControlRowType.DataRow) Then
05 Dim cm As CarModel =
06 DirectCast(e.Row.DataItem, CarModel)
07
08 img.ImageUrl =

09 String.Format(“images/{0}.jpg”, cm.ID)
10
11 End If
12 End Sub
You need to get a reference to the Image named img. Which code segment should you add at line
07?