PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to ensure that applications can consume the service without code changes in the client

You are developing a Windows Communication Foundation (WCF) service to replace an
existing A5MX Web service. The WCF service contains the following code segment. (Line
numbers are included for reference only.) The existing Web service returns the EmployeeID
as an attribute of the EmployeeInfo element in the response XML. You need to ensure that
applications can consume the service without code changes in the client.

Which code segment should you use?

You are developing a Windows Communication Foundation (WCF) client application. You

instantiate a client class that inherits from ClientBase. The client instance must always be
shut down in such a way that it can free up any resources it is referencing. You need to
ensure that all exceptions are caught and the instance is always properly shut down. Which
code segment should you use?

You need to apply the General theme to all pages, and you must ensure that the page-specific customizations ar

You are developing an ASP.NET web application. Your designer creates a theme named General for
general use in the application. The designer also makes page-specific changes to the default
properties of certain controls. You need to apply the General theme to all pages, and you must
ensure that the page-specific customizations are preserved. What should you do?

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?

Which code segment should you add at line 03?

You are developing an ASP.NET Web application. The application includes a Icomparer<string>
implementation named CaseInsensitiveComparer that compares strings without case sensitivity You
add the following method.(Line numbers are included for reference only.)
01 public IEnumerable<string>SortWords(string[] words)
02 {
03

04 }
You need to sort the array by word length and then by alphabetic order, ignoring case. Which code
segment should you add at line 03?