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?
What should you identify?
A warehouse coordinator manually allocates how much inventory should be shipped each
day for transfer orders. A warehouse worker uses the information entered by the warehouse
coordinator to process the shipments automatically. You need to identify which actions must
be performed by the warehouse coordinator and the warehouse worker. What should you
identify?
Which method is used to retrieve the values from a non-global OptionSet attribute?
Which method is used to retrieve the values from a non-global OptionSet attribute?
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 code segment should you use?
You are implementing an ASP.NET page. The page includes a method named
GetCustomerOrderDataSet that returns a DataSet. The DataSet includes a DataTable named
CustomerDetailsTable and a DataTable named OrderDetailsTable. You need to display the data in
OrderDetailsTable in a DetailsView control named dtlView. Which code segment should you use?
What should you create?
You need to track the serial number of the items your company produces. The serial
numbers must only be entered during the issue process. What should you create?
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?
You need to ensure that other services are notified when the service is started
You have an existing Windows Communication Foundation (WCF) service. You need to
ensure that other services are notified when the service is started. What should you do?
You need to identify the minimum amount of time required for the order to be delivered to the customer
A customer is placing an order for an item that is in stock. The customer requires that the
order be delivered within two weeks. You need to identify the minimum amount of time
required for the order to be delivered to the customer. What should you do from the Sales
order form?
Which interface should you add the extension method to?
You are developing an ASP.NET Web page that will display the median value from a sequence of
integer values. You need to create an extension method to compute the median value. Which
interface should you add the extension method to?