Study

XML Documents

  •   0%
  •  0     0     0

  • True or False: Comments in XML start with <!-- and end with -->
    True
  • What does an XML tree describe?
    a) The hierarchical structure of elements in an XML document
  • Select the correct option for defining an empty element in XML:
    b) <element />
  • True or False: XML documents must have a root element
    True
  • Choose the correct option to declare an attribute in XML:
    c) <element attribute="value" />
  • Select the correct statement about XML attributes:
    c) Attributes must be enclosed in quotation marks
  • True or False: XML elements cannot be empty
    False
  • Complete the sentence: XML allows for ... of data between different software systems.
    a) Syndication
  • What is the purpose of a DTD in XML?
    a) Define the structure and content of an XML document
  • True or False: XML stands for "Extensible Markup Language"
    True
  • Is this a "well formed" XML document?
    Yes
  • True or False: XML tags are case-sensitive
    True
  • True or False: XML is primarily used for displaying web pages
    False (XML is a markup language that is primarily used for storing and transporting data, particularly structured data, over the internet)
  • Which of the following options is an example of a valid XML element?
    a) <person name="John" age="30">John Doe</person>
  • Which statement is true?
    d) All XML elements must be properly closed
  • What is the meaning of DTD?
    Document Type Definition
  • Select the correct XML declaration:
    a) <?xml version="1.0" encoding="UTF-8"?>
  • What is this line called?:
    Prolog