PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which declaration should you use?

You create a Web page that contains the following code. (Line numbers are included for reference
only.)
01 <script>
02 function changeColor(c) {
03 document.getElementById(“message”).style.color=c;
04 }
05 </script>
06
07 <p id=”message”>Welcome!</p>
08 <ul id=”color”>
09 <li>Black</li>
10 <li>Red</li>
11 </ul>
You need to ensure that when the user clicks an item in the list, the text color of the Welcome!
message will change. Which declaration should you use?

Which element should you add to the system.serviceModel section in the application configuration file?

You are moving a Windows Communication Foundation (WCF) service into production. You
need to be able to monitor the health of the service. You only want to enable all
performance counter instances exposed by the ServiceModelService 4.0.0.0 counter group.
Which element should you add to the system.serviceModel section in the application
configuration file?

What should you set the ClientIDMode property of the DropDownList to?

You are developing an ASP.NET Web page. You add a data-bound GridView control. The GridView
contains a TemplateField that includes a DropDownList. You set the GridViews ClientIDMode
property to Static, and you set the ClientIDRowSuffix property to ProductID. You need to be able to
reference individual DropDownList controls from client-side script by using the ProductID. What
should you set the ClientIDMode property of the DropDownList to?

You need to enable inspection of the malformed data and prevent message tampering

You create a Windows Communication Foundation (WCF) service and deploy it with
wsHttpBinding and message security enabled. You create an intermediate WCF service for
logging messages sent to the primary service. The intermediate service is called via the
clientVia endpoint behavior. The primary service is receiving malformed data from a client
application. You need to enable inspection of the malformed data and prevent message
tampering. What should you do?