XML Overview

17 Questions | Total Attempts: 423

SettingsSettingsSettings
Please wait...
XML Quizzes & Trivia

This is the quiz on XML technology that covers the following topicsIntroduction to XML. Need for XML. XML syntax: Rules of XML language.


Questions and Answers
  • 1. 
    A. XML provides a platform-neutral, language-independent means of describing data.B. XML provides a language-neutral, platform-independent means of describing data.C.XML provides a neutral platform-independent means of describing data.
    • A. 

      B is correct

    • B. 

      C is correct

    • C. 

      At least one from A and B is correct

    • D. 

      All are correct

    • E. 

      None is correct

  • 2. 
    This question is about the history of XML. Choose all those apply.
    • A. 

      Developed in 1996 by W3C

    • B. 

      A subset of and based upon SGML

    • C. 

      Designed to be both machine readable and human readable.

    • D. 

      Originally designed to meet the challenges of large-scale electronic publishing.

  • 3. 
    Here are few statements about XML, choose all that apply
    • A. 

      XML is about the description of data

    • B. 

      XML provides some pre-defined tags.

    • C. 

      You can have your own tags in XML

    • D. 

      Using XML, we can create our own markup language

    • E. 

      At least one of the above four options is wrong

  • 4. 
    Refer the below XML, and choose all that apply
    • A. 

      This is not a well formed XML

    • B. 

      This will become well formed XML if we correct the 'details' tag.

    • C. 

      'name' has three child elements

    • D. 

      This is a well formed XML but it may not be a valid XML

    • E. 

      At least two options are correct

  • 5. 
    Choose all that apply to a Valid XML
    • A. 

      Well-formed

    • B. 

      Complies with syntax

    • C. 

      Validation rules can be defined either in DTD or XML Schema

    • D. 

      A & B is correct

    • E. 

      B, C & D are correct

  • 6. 
    Which of the following is not an application of XML
    • A. 

      Publishing

    • B. 

      Business Document Exchange

    • C. 

      RSS / Atom

    • D. 

      All of these

    • E. 

      None of these

  • 7. 
    This question is about XML syntax. Select what is applicable.
    • A. 

      Unlike HTML, both start and end tags are required.

    • B. 

      The content of an element is delimited by special markups known as start tag and end tag.

    • C. 

      Names in XML must start with either a letter or a digit or the underscore character (“_”).

    • D. 

      Spaces are allowed in names.

    • E. 

      Unlike HTML, names are case sensitive in XML.

  • 8. 
    XML Attributes - Will the XML processor reject the following:
    • A. 

      No

    • B. 

      Yes

    • C. 

      It will accept if the value of the attribute is enclosed in double quotation marks.

    • D. 

      It will accept if the value of the attribute is enclosed in single quotation marks.

    • E. 

      None of these

  • 9. 
    Select the 'True' statements about the XML attributes
    • A. 

      Attribute names without values not allowed.

    • B. 

      Attribute names without delimiters not allowed

    • C. 

      Only one instance of an attribute tag is allowed within a given tag.

    • D. 

      All of these

    • E. 

      None of these

  • 10. 
    Refer the following two xml elements and select all those options that are correct
    • A. 

      Both are identical

    • B. 

      An empty element tag cannot have attributes.

    • C. 

      Elements that have no content are known as empty elements

    • D. 

      None of these

  • 11. 
    Refer the below statements about nesting of elements in XML 1. Element content is not limited to text; elements can contain other elements that in turn can contain text or elements and so on.2. The below nesting is illegal in XML3. An XML document is a tree of elements. There is no limit to the depth of the tree, and elements can repeat. 
    • A. 

      1 & 3 are correct

    • B. 

      2 & 3 are correct

    • C. 

      1,2 & 3 are correct

    • D. 

      None are correct

  • 12. 
    Following example is legal or illegal?
    • A. 

      Legal

    • B. 

      Illegal

    • C. 

      Not sure

  • 13. 
    Select what is true about XML declaration
    • A. 

      The XML declaration is the first line of the document.

    • B. 

      The declaration also lists the version of XML used in the document.

    • C. 

      The XML declaration is optional.

    • D. 

      If the declaration is included however, it must start on the first character of the first line of the document.

    • E. 

      The XML recommendation suggests you include the declaration in every XML document.

  • 14. 
    This question is about XML encoding. Select all the correct ones
    • A. 

      Characters in XML documents follow the Unicode standard.

    • B. 

      XML uses the 16 bit Unicode character set.

    • C. 

      XML processor must recognize the UTF-8 and UTF-16 encodings.

    • D. 

      Documents that use encoding other than UTF-8 or UTF-16 must start with an XML declaration.

    • E. 

      All of these

  • 15. 
    This question is about entities in XML. Select what is applicable.
    • A. 

      Entities are inserted in the document through entity references (the name of the entity between an ampersand character and a semicolon).

    • B. 

      For the application, the entity reference is replaced by the content of the entity.

    • C. 

      Either A or B is wrong

    • D. 

      XML predefines entities for the characters used in markup (angle brackets, quotes, and so on). The entities are used to escape the characters from element or attribute content.

  • 16. 
    Refer the below statements about XML processing instructions. 
    • A. 

      1 & 2 are correct

    • B. 

      1 & 3 are correct

    • C. 

      2, 3 and 4 are correct

    • D. 

      All are correct

    • E. 

      Only 2 is correct

  • 17. 
    Refer the below statements about CDATA Sections
    • A. 

      A & C is correct

    • B. 

      A, C & E is correct

    • C. 

      A, D & E is correct

    • D. 

      B & E is correct

    • E. 

      A, C & D is correct