MCSD.NET - 70-310 Exam Question:
Download Questions PDF

Suppose You are creating an XML Web service named ListBoxService. This service provides content,
such as states, countries, and geographical regions, for use in drop-down list boxes.
ListBoxService contains a Web method named RetrieveRegionsListBox. This method runs a
DataSet object that contains every geographical region in the world.
RetrieveRegionsListBox calls a Microsoft SQL Server database to load the DataSet object with
region data. You want to minimize the amount of time the method takes to return to the caller.
What should you do?
A. Use a stored procedure to return the data.
B. Store each DataSet object by using the Session object.
C. Set the BufferResponse property of the WebMethod attribute to false.
D. Set the CacheDuration property of the WebMethod attribute to an interval greater than zero.

Answer:

D. Set the CacheDuration property of the WebMethod attribute to an interval greater than zero.

Download MCSD.NET - 70-310 Exam Interview Questions And Answers PDF

Previous QuestionNext Question
Suppose You create a serviced component named Scheduler. Scheduler is registered in a library
application. The Scheduler methods parse String objects into Date Time objects.
You write a console application named EXCoverage.exe to test each method in Scheduler. You
want Coverage.exe to test Scheduler for multiple cultures to verify its globalization support.
What should you do?
A. Create a CultureInfo object for each culture locale before calling the Scheduler methods.
B. Create a RegionInfo object for each culture locale before calling the Scheduler methods.
C. Set the current thread?s CurrentCulture property to each culture locale before calling the
Scheduler methods.
D. Create a EXCoverage.exe.config file and add a <location> element to the configuration file for
each culture locale.
Suppose You are debugging a visual studio .Net application named XYZApp. The application produces an
Xml documents object and then consumes the same object. This object moves data in the
application. The object has no schema, but it contains a declaration line that you must inspect.
You decide to transform the XML code and its declaration into a string for easy inspection.
What should you do?
A. Assign the ToString method of the Xml Document object to a string variable.
B. Assign the OuterXml property of the Xml document object to a string variable
C. Assign the OuterXml property of the Xml document element property of the Xml document
object to a string variable.
D. Use the WriteContentTo method of the XmlDocument object to write the document into a
MemoryStream object. Use the GetXml method of the DataSet object to get a string version of
the document.