XML Fundamentals Quiz

Test your knowledge of XML syntax, well-formedness rules, DTD, XSL, and core XML specifications.

16 Questions Published

Questions

Question 1 True/False

XML's goal is to replace HTML

  1. True
  2. False
Question 2 Multiple Choice (Single Answer)

What does XSL stand for?

  1. eXtra Style Language
  2. eXpandable Style Language
  3. eXtensible Style Listing
  4. eXtensible Stylesheet Language
Question 3 Multiple Choice (Single Answer)

There is a way of describing XML data, how?

  1. XML uses a description node to describe data
  2. XML uses a DTD to describe the data
  3. XML uses XSL to describe data
  4. None of the above
Question 4 True/False

Is this a "well formed" XML document? Tove Jani

  1. True
  2. False
Question 5 Multiple Choice (Single Answer)

Which is not a correct name for an XML element?

  1. <first name>
  2. <NAME>
  3. <age>
  4. All 3 names are incorrect
Question 6 Multiple Choice (Single Answer)

What is the correct syntax of the declaration which defines the XML version?

  1. <?xml version="1.0" />
  2. <xml version="1.0" />
  3. <?xml version="1.0"?>
  4. None of the above
Question 7 Multiple Choice (Single Answer)

What does DTD stand for?

  1. Direct Type Definition
  2. Dynamic Type Definition
  3. Document Type Definition
  4. Do The Dance
Question 8 True/False

Is this a "well formed" XML document? Tove Jani Reminder Don't forget me this weekend!

  1. True
  2. False
Question 9 Multiple Choice (Single Answer)

Which statement is true?

  1. All XML elements must be properly closed
  2. All the statements are true
  3. All XML elements must be lower case
  4. All XML documents must have a DTD
Question 10 True/False

XML preserves white spaces

  1. True
  2. False
Question 11 True/False

Is this a "well formed" XML document? Tove Jani

  1. True
  2. False
Question 12 True/False

XML elements cannot be empty

  1. True
  2. False
Question 13 True/False

XML attribute values must always be enclosed in quotes

  1. True
  2. False
Question 14 Multiple Choice (Single Answer)

For the XML parser to ignore a certain section of your XML document, which syntax is correct?

  1. <CDATA> Text to be ignored </CDATA>
  2. <PCDATA> Text to be ignored </PCDATA>
  3. <xml:CDATA[ Text to be ignored ]>
  4. <![CDATA[ Text to be ignored ]]>
Question 15 Multiple Choice (Single Answer)

What does XML stand for?

  1. X-Markup Language
  2. eXtensible Markup Language
  3. Example Markup Language
  4. eXtra Modern Link
Question 16 Multiple Choice (Single Answer)

What is a correct way of referring to a stylesheet called "mystyle.xsl" ?

  1. <link type="text/xsl" href="mystyle.xsl" />
  2. <?xml-stylesheet type="text/xsl" href="mystyle.xsl" ?>
  3. <stylesheet type="text/xsl" href="mystyle.xsl" />
  4. None of the above