Trivia Quiz On XML Test For Beginners!

73 Questions | Total Attempts: 1720

SettingsSettingsSettings
Please wait...
XML Quizzes & Trivia

XML(Extensible Markup Language) is a markup language similar to HTML which includes markup symbols to relate a page and developed by World Wide Web Consortium. XML tags identify, store and organize the data. This trivia quiz has been created for beginners and learners to their knowledge about basic coding and functions of XML. Read the questions carefully and answers. So, let's try out the quiz. All the best!


Questions and Answers
  • 1. 
    XML is more advantageous to use than a fixed-length database system because
    • A. 

      Todays computers are faster than they have been in years past.

    • B. 

      It saves money by reducing IT expenses.

    • C. 

      Those without an IT background can easily understand XML.

    • D. 

      All of the above.

  • 2. 
    SAX is
    • A. 

      A fixed-length database system

    • B. 

      An XML database system

    • C. 

      A variable-length database system

    • D. 

      An XML parser

  • 3. 
    PCDATA is
    • A. 

      An XML element that contains other XML elements

    • B. 

      An XML element that contains parsed character data

    • C. 

      An XML element thats used to define data for use only on a PC

    • D. 

      None of the above

  • 4. 
    The Document Object Model
    • A. 

      Defines the layout of an XML document

    • B. 

      Defines XML elements that are used in an XML document

    • C. 

      Is an XML parser

    • D. 

      Is an XML document that contains labels, buttons, and other Graphical User Interface objects

  • 5. 
    You must use a parser to read an XML document.
    • A. 

      True

    • B. 

      False

  • 6. 
    XML stores data in fixed lengths.
    • A. 

      True

    • B. 

      False

  • 7. 
    XML is a subset of
    • A. 

      SGML

    • B. 

      HTML

    • C. 

      MGL

    • D. 

      None of the above

  • 8. 
    XML is used for web services.
    • A. 

      True

    • B. 

      False

  • 9. 
    An XML element can contain other XML elements.
    • A. 

      True

    • B. 

      False

  • 10. 
    A parent element cannot contain another parent element.
    • A. 

      True

    • B. 

      False

  • 11. 
    An attribute contains a
    • A. 

      Name/value pair

    • B. 

      Value/name pair

    • C. 

      The data section of the XML document

    • D. 

      None of the above

  • 12. 
    The asterisk at the end of an element name in a DTD means its
    • A. 

      The end of the list of elements

    • B. 

      The beginning of the list of elements

    • C. 

      The DTD contains zero to many of this element

    • D. 

      The DTD contains this element and fewer elements

  • 13. 
    What does the parser do with the CDATA section of an XML document?
    • A. 

      Ignores it

    • B. 

      Passes the data to the application that uses the XML document without any translation or interpretation

    • C. 

      Deletes the data before passing the XML document to the application that uses the XML document

    • D. 

      None of the above

  • 14. 
    The DOCTYPE is used to
    • A. 

      Create the CDATA section of an XML document

    • B. 

      Create an XML document

    • C. 

      Identify the DTD for an XML document

    • D. 

      Identify the parser that is used to parse the XML document

  • 15. 
    All XML markup tags must have an attribute.
    • A. 

      True

    • B. 

      False

  • 16. 
    Special symbols can be inserted into an XML document using
    • A. 

      CDATA

    • B. 

      A UNICODE value

    • C. 

      An attribute

    • D. 

      A comment

  • 17. 
    You avoid conflict between an XML special character and information in an XML document by using a comment.
    • A. 

      True

    • B. 

      False

  • 18. 
    A processing command is removed from an XML document before the XML document is passed along to the application that uses the XML document.
    • A. 

      True

    • B. 

      False False False False False

  • 19. 
    An XML document must contain all elements declared in the DTD.
    • A. 

      True

    • B. 

      False

  • 20. 
    #PCDATA refers to
    • A. 

      Parsed charter data

    • B. 

      Program character data

    • C. 

      Parsed character data

    • D. 

      None of the above

  • 21. 
    What is address, phone in the declaration ?
    • A. 

      A group

    • B. 

      The value of address and phone is concatenated.

    • C. 

      The value of email is concatenated to the value of address and phone.

    • D. 

      The value of email is concatenated to the value of phone.

  • 22. 
    What is this: ?
    • A. 

      A reference to the internal DTD called phone.dtd

    • B. 

      A reference to the phone system

    • C. 

      References a shared DTD

    • D. 

      References the phone.dtd XML document

  • 23. 
    An image tag is an example of an EMPTY element.
    • A. 

      True

    • B. 

      False

  • 24. 
    All XML markup tags must have an attribute.
    • A. 

      True

    • B. 

      False

  • 25. 
    An element name can begin with
    • A. 

      A colon

    • B. 

      An underscore

    • C. 

      Letters

    • D. 

      All of the above

  • 26. 
    You cannot set valid options when declaring an attribute.
    • A. 

      True

    • B. 

      False

  • 27. 
    An XML schema is used to define a complex type.
    • A. 

      True

    • B. 

      False

  • 28. 
    Type=fiintegerfl means
    • A. 

      The content of an element is the word integer.

    • B. 

      All types except integers can be used in the corresponding element.

    • C. 

      Only integers can be used in the corresponding element.

    • D. 

      None of the above.

  • 29. 
    Xmlns:xs=fihttp://www.w3.org/2001/XMLSchemafl is used to
    • A. 

      Identify ownership of the XML schema

    • B. 

      Identify ownership of the XML document

    • C. 

      Identify the XML schema specifications used in the XML schema

    • D. 

      Identify that this is an XML schema

  • 30. 
    The xs:sequence tag
    • A. 

      Specifies the sequence in which elements must appear in an XML document

    • B. 

      Specifies the sequence in which elements must appear in an XML schema

    • C. 

      Specifies the sequence in which attributes must appear in an XML document

    • D. 

      Specifies the sequence in which attributes must appear in an XML schema

  • 31. 
    Xsi:schemaLocation=ficustomers.xsdfl is used to
    • A. 

      Identify the owner of the XML document

    • B. 

      Identify the owner of the XML schema

    • C. 

      Identify the location of the XML document

    • D. 

      Identify the location of the XML schema

  • 32. 
    You can require a specific value for an attribute by setting the value for fixed.
    • A. 

      True

    • B. 

      False

  • 33. 
    A regular expression can be used to specify complex restrictions for the content of an element.
    • A. 

      True

    • B. 

      False

  • 34. 
    You can specify a series of valid values for an element by using which of the following in a regular expression?
    • A. 

      |

    • B. 

      OR

    • C. 

      Or

    • D. 

      +

  • 35. 
    A facet is a valid value that can be assigned to an attribute.
    • A. 

      True

    • B. 

      False

  • 36. 
    The xs:enumeration tag is used to define a valid value for an attribute.
    • A. 

      True

    • B. 

      False

  • 37. 
    XML can only be transformed into HTML or XHTML.
    • A. 

      True

    • B. 

      False

  • 38. 
    Instructions for transforming an XML document are contained in the
    • A. 

      XSL stylesheet

    • B. 

      CSS stylesheet

    • C. 

      XSLT stylesheet

    • D. 

      None of the above

  • 39. 
    The <xsl:for-each select=ficustomers/customerfl> statement states
    • A. 

      For each customer element of the result document

    • B. 

      For each customers element of the result document

    • C. 

      For each customer element of the source document thats a child of customers

    • D. 

      For each customers element of the source document

  • 40. 
    The <xsl:value-of> element is used to
    • A. 

      Extract text from the result document

    • B. 

      Extract text from the source document

    • C. 

      Place text into the source document

    • D. 

      None of the above

  • 41. 
    The <xsl:value-of [email protected]=Jimfi/> statement is used to
    • A. 

      Select the Jim element

    • B. 

      Select the id attribute

    • C. 

      Select the Jim attribute

    • D. 

      Select the id attribute if the value is Jim

  • 42. 
    The <xsl:for-each> element contains only XSL elements.
    • A. 

      True

    • B. 

      False

  • 43. 
    The <xsl:if> element instructs the CSS to evaluate a condition before extracting an element.
    • A. 

      True

    • B. 

      False

  • 44. 
    You can repeat lines of code within the XSL stylesheet by defining an apply-template.
    • A. 

      True

    • B. 

      False

  • 45. 
    Only a browser can access a result document.
    • A. 

      True

    • B. 

      False

  • 46. 
    The SAX parser is able to transverse an XML document.
    • A. 

      True

    • B. 

      False

  • 47. 
    The SAX parser creates a node by using
    • A. 

      CreateElement()

    • B. 

      CreateTextNode()

    • C. 

      CreateComment()

    • D. 

      None of the above

  • 48. 
    The SAX parser reacts to a new element by using
    • A. 

      EndElement()

    • B. 

      Characters()

    • C. 

      StartElement()

    • D. 

      StartDocument()

  • 49. 
    Which of the following is represented as a node in the tree a DOM parser creates?
    • A. 

      CDATA sections

    • B. 

      Comments

    • C. 

      Elements

    • D. 

      All of the above

  • 50. 
    A Java transformer can use
    • A. 

      Its own stylesheet

    • B. 

      DTD

    • C. 

      XSLT

    • D. 

      All of the above

  • 51. 
    The same version of a DOM parser must be used on all computers.
    • A. 

      True

    • B. 

      False

  • 52. 
    A Stream is a series of characters that can be the results of transformation performed by a Java transformer.
    • A. 

      True

    • B. 

      False

  • 53. 
    A SAX parser
    • A. 

      Reads a block of an XML document at a time

    • B. 

      Organizes the XML document into a tree

    • C. 

      Enables you to correct the contents of an XML document

    • D. 

      None of the above

  • 54. 
    You should use a SAX parser if a DOM parser is unable to load the XML document into memory.
    • A. 

      True

    • B. 

      False

  • 55. 
    Saxon-B is the only software that can process an XQuery.
    • A. 

      True

    • B. 

      False

  • 56. 
    What kind of clause is used to specify the filter criteria?
    • A. 

      SQL clause

    • B. 

      Declarative clause

    • C. 

      Where clause

    • D. 

      None of the above

  • 57. 
    $x is an
    • A. 

      Element

    • B. 

      Attribute

    • C. 

      XQuery

    • D. 

      Variable

  • 58. 
    Order by
    • A. 

      Places all elements in the XML document in ascending order

    • B. 

      Places all elements in the XML document in descending order

    • C. 

      Places all return values in ascending order by default

    • D. 

      Places all return values in descending order by default

  • 59. 
    The where clause
    • A. 

      Locates the XML document

    • B. 

      Locates the output file

    • C. 

      Specifies the filter criteria

    • D. 

      All of the above

  • 60. 
    All functions used by an XQuery are built-in functions.
    • A. 

      True

    • B. 

      False

  • 61. 
    The data() function returns the text value of a variable.
    • A. 

      True

    • B. 

      False

  • 62. 
    A constructor
    • A. 

      Converts information contained in an XML document to another data type

    • B. 

      Is the first instance of a function

    • C. 

      Is the first instance of a variable

    • D. 

      None of the above

  • 63. 
    The doc() function retrieves an XML document.
    • A. 

      True

    • B. 

      False

  • 64. 
    The round-half-to-even() function rounds half the value returned by a function.
    • A. 

      True

    • B. 

      False

  • 65. 
    MSXML can only be used with JavaScript.
    • A. 

      True

    • B. 

      False

  • 66. 
    The async = false means
    • A. 

      Statements will continue to execute as the XML document is being loaded.

    • B. 

      Statements will not execute until the XML document is being loaded.

    • C. 

      The XML document is synchronized to the HTML page.

    • D. 

      None of the above.

  • 67. 
    FirstChild is a
    • A. 

      Property containing a reference to the first child of an element

    • B. 

      Method that makes the current node the first child

    • C. 

      Method that substitutes the first node for the last node

    • D. 

      Method that substitutes the last node for the first node

  • 68. 
    CreateElement(fititlefl) means
    • A. 

      Create a new HTML element

    • B. 

      Create a new XML element

    • C. 

      Create a title for a new HTML element

    • D. 

      Create an attribute called title for the current XML element

  • 69. 
    Fi/catalog/cd[@upc=fi + upc + fi] means
    • A. 

      Find the text that matches the value of the upc variable in the cd element

    • B. 

      Find the upc attribute that matches the value of the upc variable in the cd element

    • C. 

      Find the upc element that matches the UPC in the cd element

    • D. 

      All of the above

  • 70. 
    An XML document can be validated against a DTD by calling the validate() method.
    • A. 

      True

    • B. 

      False

  • 71. 
    The appendChild() appends a node to the end of an XML document.
    • A. 

      True

    • B. 

      False

  • 72. 
    The version is specified in ActiveXObject(fiMSXML2.DOMDocument.4.0fl) because
    • A. 

      Versions are designed to coexist with previous versions.

    • B. 

      Only the version specified can be used with the XML document.

    • C. 

      It identifies potential conflicts in versions.

    • D. 

      None of the above.

  • 73. 
    The loadXML() method is used when the document is passed as a string.
    • A. 

      True

    • B. 

      False