Can You Pass This Basic XML Review Test?

15 Questions | Total Attempts: 808

SettingsSettingsSettings
Please wait...
XML Quizzes & Trivia

Extensible Markup Language (XML) is a markup language similar to Hypertext Markup Language (HTML) which contains markup symbols to describe a page. It was developed by World Wide Web Consortium. XML tags identify, store and organize the data. This review quiz has been designed for programmers and learners who are learning XML language. Take this quiz to test your knowledge about basic coding and functions of XML. So, let's try out the quiz. All the best!


Questions and Answers
  • 1. 
    What is the correct syntax of the declaration which defines the XML version?
    • A. 

      <?xml version="1.0" />

    • B. 

      <?xml version="1.0"?>

    • C. 

      <xml version="1.0" />

    • D. 

      <xml version="1.0"?/>

    • E. 

      <?xml version="1.0"?/>

  • 2. 
    All "Well-formed" XML documents are "Valid" XML documents.
    • A. 

      True

    • B. 

      False

  • 3. 
    Which statement is true?
    • A. 

      All XML elements must be lower case

    • B. 

      All XML documents must have a DTD

    • C. 

      All XML elements must be properly closed

    • D. 

      All of the above

    • E. 

      None of the above

  • 4. 
    Which statement is true?
    • A. 

      XML tags are case sensitive

    • B. 

      XML documents must have a root tag

    • C. 

      XML elements must be properly nested

    • D. 

      All of the above

    • E. 

      None of the above

  • 5. 
    XML preserves white spaces
    • A. 

      True

    • B. 

      False

  • 6. 
    Is this a "well formed" XML document? <?xml version="1.0"?> <note> <to age=24 >Majnu</to> <from>Laila</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>
    • A. 

      Yes

    • B. 

      No

  • 7. 
    XML cannot contain Empty elements
    • A. 

      Yes

    • B. 

      No

  • 8. 
    Which is not a correct name for an XML element?
    • A. 

      <1dollar>

    • B. 

      <Note>

    • C. 

      <h1>

    • D. 

      <First Name>

    • E. 

      <xmldocument>

  • 9. 
    XML attribute values must always be enclosed in quotes
    • A. 

      True

    • B. 

      False

  • 10. 
    Is this a "well formed" XML document? <?xml version="1.0"?> <to>Majnu</to> <from>Laila</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body>
    • A. 

      Yes

    • B. 

      No

  • 11. 
    How does XML describe the data?
    • A. 

      XML uses Document Type Definition to describe the data

    • B. 

      XML uses XSL to describe the data

    • C. 

      XML uses a description node to describe the data

    • D. 

      XML uses Schema Definition to describe the data

    • E. 

      All of the above

  • 12. 
    What does XML stand for?
    • A. 

      EXtra Modern Link

    • B. 

      EXtensive Markup Language

    • C. 

      Example Markup Language

    • D. 

      X-Markup Language

    • E. 

      EXtensible Markup Language

  • 13. 
    The following is the syntax for NameSpaces
    • A. 

      Xmlns:[location]=“[prefix ]”

    • B. 

      Xmlns:[prefix]=“[location]”

    • C. 

      Xmln:[prefix]=“[location]”

    • D. 

      Xmln:[location]=“[prefix ]”

    • E. 

      None of the above

  • 14. 
    Which among the following is true about XML?
    • A. 

      It is a single predefined markup language

    • B. 

      It has a fixed tag set

    • C. 

      It is a presentation language

    • D. 

      It is a metalanguage

    • E. 

      It has a pre-defined fixed tag set

  • 15. 
    Is this a "well formed" XML document? <?xml version="1.0"?> <note> <to>Majnu<<from>Laila</to>/from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>
    • A. 

      Yes

    • B. 

      No