70-552  Exam

Exam # of questions Description  Update
70-552 252 70-552... 02/15/2011
[Practice Test]   [Download Study Guide(PDF)]  [Update Exam]

70-552 - Exam Information
  • Description:MCAD Skills to MCPD Windows Developer by Using MS.NET Framework
  • Passing Score:75%
  • Practice Test - Number of questions:252 questions
  • Simulation Test - Number of questions:252 questions
  • Simulation Test Duration:90 minutes
  • Has explanations:No

Question of the day

Answer(s)

  1. Windows Forms application reads the following XML file.Gambardella, MatthewXML Developer's GuideRalls, KimMidnight RainThe form initialization loads this file into an XmlDocument object named docBooks. You need topopulate a ListBox control named lstBooks with the concatenated book ID and title of each book.Which code segment should you use?A. Dim elements As XmlNodeList = docBooks.GetElementsByTagName("book")Dim node AsXmlElementFor Each node In elements Dim s As String = node.GetAttribute("id") + " - " s = s +node.SelectSingleNode("title").InnerText lstBooks.Items.Add(s)Next node
  2. Dim elements As XmlNodeList = docBooks.GetElementsByTagName("book")Dim node AsXmlElementFor Each node In elements Dim s As String = node.SelectSingleNode("id").ToString()+ " - " s =s + node.GetAttribute("title") lstBooks.Items.Add(s)Next node
  3. Dim elements As XmlNodeList = docBooks.GetElementsByTagName("book")Dim node AsXmlElementFor Each node In elements Dim s As String = node.GetAttribute("id") + " - " s = s +node.SelectSingleNode("title").Value lstBooks.Items.Add(s)Next node
  4. Dim elements As XmlNodeList = docBooks.GetElementsByTagName("book")Dim node AsXmlElementFor Each node In elements lstBooks.Items.Add(node.InnerXml)Next node
Correct Answer

Windows Forms application reads the following XML file.Gambardella, MatthewXML Developer's GuideRalls, KimMidnight RainThe form initialization loads this file into an XmlDocument object named docBooks. You need topopulate a ListBox control named lstBooks with the concatenated book ID and title of each book.Which code segment should you use?A. Dim elements As XmlNodeList = docBooks.GetElementsByTagName("book")Dim node AsXmlElementFor Each node In elements Dim s As String = node.GetAttribute("id") + " - " s = s +node.SelectSingleNode("title").InnerText lstBooks.Items.Add(s)Next node