Which line of code should you insert at line 04?
A Windows Communication Foundation (WCF) service is self-hosted in a console
application. The service implements the IDataAccess contract, which is defined in the
MyApplication namespace. The service is implemented in a class named
DataAccessService, which implements the IDataAccess interface and also is defined in the
MyApplication namespace. The hosting code is as follows. (Line numbers are included for
reference only.) 01 static void Main(string[] args) 02 { 03 ServiceHost host; 04 05
host.Open(); 06 Console.ReadLine(); 07 host.Close(); 08 } You need to create a
ServiceHost instance and assign it to the host variable. You also need to instantiate the
service host. Which line of code should you insert at line 04?
Which three of the following can you configure by using the Item model group form?
You are creating a new item model group. Which three of the following can you configure by
using the Item model group form? Each correct answer presents a complete solution.
You need to create and use a separate style for the Help button, and you must use the default style for the De
You are implementing an ASP.NET page. You add asp:Button controls for Help and for Detail. You
add an ASP.NET skin file named default.skin to a theme. You need to create and use a separate style
for the Help button, and you must use the default style for the Detail button. What should you do?
Which code segment should you use?
A Web page includes the HTML shown in the following code segmen <span id=”ref”>
<a name=Reference>Check out</a> the FAQ on
<a href=”http://www.contoso.com”>
Contoso</a>’s web site for more information:
<a href=”http://www.contoso.com/faq”>FAQ</a>.
</span>
<a href=”http://www.contoso.com/home”>Home</a>
You need to write a JavaScript function that will dynamically format in boldface all of the hyperlinks
in the ref span. Which code segment should you use?
Which form should you use to perform the configuration?
You need to ensure that a sales order picking list is generated before a sales order packing
slip is generated. Which form should you use to perform the configuration?
Which XML segment should you add to the system.serviceModel configuration section of the web.config file?
Four Windows Communication Foundation (WCF) services are hosted in Microsoft Internet
Information Services (IIS). No behavior configuration exists in the web.config file. You need
to configure the application so that every service and endpoint limits the number of
concurrent calls to 50 and the number of concurrent sessions to 25. Which XML segment
should you add to the system.serviceModel configuration section of the web.config file?
You need to implement a single error handler that will add error information from all page $.ajax calls to the
You create an ASP.NET page. The page uses the jQuery $.ajax function to make calls back to the
server in several places. You add the following div element to the page.
<div id=”errorInfo”>
</div>
You need to implement a single error handler that will add error information from all page $.ajax
calls to the div named errorInfo. What should you do?
Which of the following three fields are required to finalize the released product?
You are setting up a new product. Which of the following three fields are required to finalize
the released product? Each correct answer presents pan of the solution.
Which code segment should you use?
You create a Web page that contains the span shown in the following line of code.
<span id=”span1″>Text</span>
You need replace the contents of the span with HTML that you download from a URL specified by a
global variable named localURL. Which code segment should you use?
Which binding should you use?
You are creating a Windows Communication Foundation (WCF) service. You need to
ensure that the service is compatible with ASP.NET to make use of the session state.
Which binding should you use?