nerdexam
Microsoft

70-516 · Question #266

70-516 Question #266: Real Exam Question with Answer & Explanation

Sign in or unlock 70-516 to reveal the answer and full explanation for question #266. The question stem and answer options stay visible for context.

Question

You use Microsoft Visual Studio 2010 and Microsoft NET Framework 4 to create an application. The application contains the following XML fragment. <ApplicationMenu> <Menultem name'File'> Menuftem name='New> <Menultem nameI?rojectw I> <Menultem name'Web Site' I><4Aenultem> <Menultem name='Open><Menultem name=Project"> <Menultem name'Web Site"> <iNenultem><Menultem narner"Save0 1> </1ienuttem> <Menultem nameEdr> <Menultem nameCut" I> <Menultem name"C0W I> <Menultem name'Paste01> <`Menultem> <Menultem name'1-4elp'> <Menultem namezlHeIp I> <Menultem name"About' I> </Menulteni> </ApplicationMenu' The application queries the XML fragment by using the Xml Document class. You need to select all the descendant elements of the Menultem element that has its name attribute as File Which XPath expression should you use?

Options

  • A//[@name='File'][name( )`Menultem']
  • B/ApplicationMenu/Menultem[FiI&)f(Menultem
  • C/ApphcationMenulMenultem/descendant: :Menultem[file']
  • D/ApplicationMenu/Menultem[name=File']/descendant. Menultem

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.

Full 70-516 Practice