Microsoft
70-516 · Question #216
Refer to the following lines in the case study: PA40 in \Model\Part.cs, PR16 in\Model\Product.cs, and CT14 in \Model\Component.cs The application must create XML files that detail the part structure…
Sign in or unlock 70-516 to reveal the answer and full explanation for question #216. The question stem and answer options stay visible for context.
Question
Refer to the following lines in the case study: PA40 in \Model\Part.cs, PR16 in\Model\Product.cs, and CT14 in \Model\Component.cs The application must create XML files that detail the part structure for any product. The XML files must use the following format:
<?xml version="1.0" encoding="utf-8"?> <product name="Brush" description="Brush product" productType="1"> <component name="Handle" description="Handle" partType="2"> <component name="Screw" description="Screw" partType="3"> <component name="Wood" description="Wooden shaft" partType="45"> </component> <component name="Head" description="Head" partType="5"> <component name="Screw" description="Screw" partType="3"> <component name="Bristles" description="Bristles" partType="4"> </component> </product> You need to update the application to support the creation of an XElement object having a structure that will serialize to the format shown above. What should you do? (Each correct answer presents part of the solution. Choose two.)Options
- AInsert the following code segment at line PR16 in \Model\Product.cs:
- BInsert the following code segment at line CT14 in \Model\Component.cs:
- CInsert the following code segment at line PR16 in \Model\Product.cs:
- DInsert the following code segment at line PR16 in \Model\Product.cs:
- EInsert the following code segment at line CT14 in \Model\Component.cs:
- FInsert the following code segment at line CT14 in \Model\Component.cs:
Unlock 70-516 to see the answer
You've previewed enough free 70-516 questions. Unlock 70-516 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.