PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to ensure that the GetCurrentRate method can be called from JavaScript

You are implementing a WCF service library. You add a new code file that contains the following
code segment.
Namespace ContosoWCF
<ServiceContract()>
Public Interface IRateService
<OperationContract()>
Function GetCurrentRate() As Decimal
End Interface
Partial Public Class RateService
Implements IRateService
Public Function GetCurrentRate() As Decimal _
Implements IRateService.GetCurrentRate
Dim currentRate As Decimal =
GetRateFromDatabase()
Return currentRate
End Function
End Class
End Namespace

You build the service library and deploy its assembly to an IIS application. You need to ensure that
the GetCurrentRate method can be called from JavaScript. What should you do?

Which code segment should you use in this class?

A Windows Communication Foundation (WCF) service handles online order processing for
your company. You discover that many requests are being made with invalid account
numbers. You create a class named AccountNumberValidator that has a method named
Validate. Before the message is processed, you need to validate account numbers with
AccountNumberValidator and reject messages with invalid account numbers. You create a
new class that implements the IParameterInspector interface. Which code segment should
you use in this class?

Which method of the FieldTemplateUserControl class should you override in the BooleanField class?

You are developing an ASP.NET Dynamic Data Web application. Boolean fields must display as Yes or
No instead of as a check box. You replace the markup in the default Boolean field template with the
following markup.

<asp:Label runat=”server” ID=”label” />
You need to implement the code that displays Yes or No. Which method of the
FieldTemplateUserControl class should you override in the BooleanField class?