Microsoft
98-361 · Question #318
98-361 Question #318: Real Exam Question with Answer & Explanation
Sign in or unlock 98-361 to reveal the answer and full explanation for question #318. The question stem and answer options stay visible for context.
Question
You need to develop a C# program that exports the contents of the Customers table to an XML file. The exported data must be in the following format: - <Customer CustomerID="ALFKI" ContactName="Maria Anders" Phone="030-007- 4321" /> - <Customer CustomerID="ANATR" ContactName="Ana Trujillo" Phone="(5) 555- 4729" /> Which of the following code segments should you use to export the Customers table to the specified XML format?
Options
- Aforeach(DataColumn c in dataset1.tables["Customers"].Columns) {
- BColumnMapping = MappingType.Attribute;
- Cforeach(DataColumn c in dataset1.tables["Customers"].Columns) {
- DColumnMapping = MappingType.Element;
- Eforeach(DataColumn c in dataset1.tables["Customers"].Columns) {
- FColumnMapping = MappingType.Attribute;
- Gforeach(DataColumn c in dataset1.tables["Customers"].Columns) {
- HColumnMapping = MappingType.Element;
Unlock 98-361 to see the answer
You've previewed enough free 98-361 questions. Unlock 98-361 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.