nerdexam
GIAC

GSSP-NET · Question #235

GSSP-NET Question #235: Real Exam Question with Answer & Explanation

Sign in or unlock GSSP-NET to reveal the answer and full explanation for question #235. The question stem and answer options stay visible for context.

Question

You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a Windows Forms application using .NET Framework 3.5. You use LINQ expressions to read a list of employees from the following XML file: <employees> <employee id="135" birthDate="5/01/1968"> Sam Paul </employee> <employee id="122" birthDate="3/05/1988"> Kelly Smith </employee> <employee id="044" birthDate="8/24/1990"> Joe Healy </employee> <employee id="582" birthDate="6/15/1974"> Matt Hardy </employee> <employee id="275" birthDate="2/07/2004"> Tom Altar </employee> <employee id="144" birthDate="9/23/1946"> Jeff Hay </employee> <employee id="444" birthDate="5/15/1947"> Kim Shane </employee> <employee id="243" birthDate="4/24/1980"> Mike Ray </employee> <employee id="363" birthDate="8/14/1975"> Allen Ryan </employee> <employee id="473" birthDate="1/15/1979"> Jackline Beneath </employee> <employee id="713" birthDate="9/09/1985"> Adam Ford </employee> <employee id="032" birthDate="5/04/1990"> Mike Tyson </employee> </employees> You are required to obtain a list of names of employees who are 23 years or older. Which of the following code segments will you use?

Options

  • AXDocument employees = XDocument.Load("Employees.xml"); var results = from c in
  • BXDocument employees = XDocument.Load("Employees.xml"); var results = from c in
  • CXDocument employees = XDocument.Load("Employees.xml"); var results = from c in
  • DXDocument employees = XDocument.Load("Employees.xml"); var results = from c in

Unlock GSSP-NET to see the answer

You've previewed enough free GSSP-NET questions. Unlock GSSP-NET 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 GSSP-NET Practice