Microsoft
70-516 · Question #216
70-516 Question #216: Real Exam Question with Answer & Explanation
The correct answer is D. Insert the following code segment at line PR16 in \Model\Product.cs: F. Insert the following code segment at line CT14 in \Model\Component.cs:. See the full explanation below for the reasoning.
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:
Community Discussion
No community discussion yet for this question.