PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

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?

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 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?