PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

What are two possible ways to achieve this goal?

A Windows Communication Foundation (WCF) solution uses the following contracts. (Line
numbers are included for reference only.) When the client calls GetMessage on the service
interface, the service calls GetName on the client callback. In the client, the class
NameService implements the callback contract. The client channel is created as follows.
You need to ensure that the service callback is processed by the instance of NameService.
What are two possible ways to achieve this goal? (Each correct answer presents a
complete solution. Choose two.)

You need to ensure that the application shows the Order and Customer entities and hides all other entities

You are deloping an ASP.NET Dynamic Data Web application. The application uses entities from a
global library named Entities. The Application_Start event contains the following code segment:
DefaultModel.RegisterContect(typeof)(
Entities.MyDBDataContext), new ContextConfiguration() {
ScaffoldAllTables = false });
You need to ensure that the application shows the Order and Customer entities and hides all other
entities. What should you do?

You need to ensure that the page generates the appropriate database query

You are developing an ASP.NET web page.
The page includes the following EntityDataSource control:
<asp:EntityDataSource ID=”EntityDataSource1″ runat=”server”
ConnectionString=”name=AdventureWorksEntities”
DefaultContainerName=”AdventureWorksEntities” EnableFlattening=”False”
EntitySetName=”Products” />
The page must filter the data that is displayed in a grid on a query string parameter named
ProductPrefix. The grid must display products whose ProductName starts with the query string
value. You need to ensure that the page generates the appropriate database query. What should
you do?

Which code segment should you insert at line 03?

You are developing a client application that uses the following code to consume a Windows
Communication Foundation (WCF) service. (Line numbers are included for reference only.)
01 Dim myBinding As BasicHttpBinding = New BasicHttpBinding() 02 Dim
myEndpointAddress As EndpointAddress = New EndpointAddress(
“http://contoso.com/TaxService.svc”) 03 04 Dim client As ITaxService =
channelFactory.CreateChannel() 05 Dim data As String = client.GetData(1) You need to
consume the service. Which code segment should you insert at line 03?

You need to ensure that the extender can be user to extend only text boxes and that the targetID property can

You are developing an ASP.NET AJAX extender control. The extender includes the following segment.
public class DisabledButtonExtender : ExtenderControlBase
{
[ExtenderControlProperty]
public string TargetID
{
get{…}
set{…}
}}
You need to ensure that the extender can be user to extend only text boxes and that the targetID
property can reference only buttons. What should you do?

You need to ensure that client applications can communicate with the service and discover changes to the servi

You are creating a Windows Communication Foundation (WCF) service. The service
endpoints change frequently. On the service, you add a new ServiceDiscoveryBehavior to
the Behaviors collection of the ServiceHost Description property. You need to ensure that
client applications can communicate with the service and discover changes to the service
endpoints. What should you do?