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

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.

Tweet Share WhatsApp

Answer:

B. Assign the OuterXml property of the Xml document object to a string variable

Download MCSD.NET - 70-310 Exam PDF Read All 19 MCSD.NET - 70-310 Exam Questions
Previous QuestionNext Question
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.
Suppose You create a Windows service that processes XML messages placed in a MSMQ queue. You
discover that the service is not functioning properly.
You need to debug the service to correct the program.
What should you do?
A. Start the Windows service.
Then attach a debugger to the process.
B. Attach a debugger to the Windows service.
Then start the Windows service.
C. Start the Windows service.
Then run the .NET Services Installation tool (Regsvcs.exe).
D. Place a breakpoint in the Main method of the Windows service.
Then run the application within the Visual Studio .NET integrated development environment
(IDE).