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

You have a DataSet object named myDataSet. This object contains two DataTable objects
named Customers and Orders. Customers has a column named CustomerID, which is unique to
each customer.
Orders also has a column named CustomerID. You want to use the GetChildRows method of the
DataRow object to get all orders for the current customers.
What should you do?
A. Add a foreign key constraint on CustomerID of Orders between Customers and Orders.
B. Add a data relation to myDataSet on OrderID between Customers and Orders.
C. Create a unique constraint on CustomerID of Customers..
D. Create a primary key on CustomerID of Customers.

Answer:

B. Add a data relation to myDataSet on OrderID between Customers and Orders.

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

Previous QuestionNext Question
You are creating an XML Web service named XYZService. This service has a function named
WriteMessage that writes messages to a flat file in the C:EXServiceLog directory..
You want to implement security for WriteMessage so that WriteMessage and all the code it calls
can write messages only to the EXServiceLog directory.
Which code segment should you use?
A. Dim filePermission As New
FileIOPermission_(FileIOPermissionAccess.Write, ?C:EXServiceLog?)
filePermission.Demand()
B. Dim filePermission As New
FileIOPermission_(FileIOPermissionAccess.Write, ?C:EXServiceLog?)
filePermission.Deny()
C. Dim filePermission As New
FileIOPermission_(FileIOPermissionAccess.Write, ?C:EXServiceLog?)
filePermission.PermitOnly()
D. Dim filePermission As New
FileIOPermission_(FileIOPermissionAccess.Write, ?C:EXServiceLog?)
filePermission.Assert()
Your company frequently receives product information from external vendors in the form of XML
data.
You receive XML document files, an .xdr schema file, and an .xsd schema file.
You need to write code that will create a typed DataSet object on the basis of product information.
Your code will be used in several Visual studio .NET applications to speed up data processing.
You need to create this code as quickly as possible.
What should you do?
A. Create the code manually.
B. Use XmlSerializer.Serialize to generate the code.
C. Use the XmlSerializer.Deserialize to generate the code.
D. Use the Xml Schema Definition tool (Xsd.exe) to generate the code.