XML - Quiz Final

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By C0811gv
C
C0811gv
Community Contributor
Quizzes Created: 1 | Total Attempts: 1,244
Questions: 20 | Attempts: 1,244

SettingsSettingsSettings
XML Quizzes & Trivia

This is a quiz for all the programmers and nerds out there. If you want to test your knowledge on this particular bunch of programming language facts take this quiz and find out how vast your knowledge is.


Questions and Answers
  • 1. 

    In order to indicate to an application processing the style sheet to look for <All> tags followed by<Perfect> tags the syntax is:

    • A.

      None of the above

    • B.

      All:Perfect

    • C.

      All,Perfect

    • D.

      All.Perfect

    Correct Answer
    D. All.Perfect
    Explanation
    CSS use space for Contextual CSS

    Rate this question:

  • 2. 

    Logical structure of data can be interpreted and used in many ways by various applications due to XML tags

    • A.

      False

    • B.

      True

    Correct Answer
    B. True
    Explanation
    The statement is true because XML tags provide a standardized way of organizing and representing data, allowing different applications to interpret and use the data in a consistent manner. XML tags define the structure and hierarchy of the data, making it easier for applications to understand and manipulate the information. This flexibility and interoperability make XML a popular choice for data exchange and integration between different systems and platforms.

    Rate this question:

  • 3. 

    End of a CDATA block is characterized by the character string

    • A.

      ':'

    • B.

      ' '

    • C.

      ';'

    • D.

      ']]'

    Correct Answer
    D. ']]'
    Explanation
    The end of a CDATA block is characterized by the character string ']]'.

    Rate this question:

  • 4. 

    Syntax for declaring an external DTD to an XML document is:

    • A.

      <!DOCTYPE rootElementName SYSTEM "path/to/dtdFile.dtd">

    • B.

      (?DOCTYPE N1 SYSTEM "show.dtd"?)

    • C.

      Both a and  b

    • D.

      None of the above

    Correct Answer
    A. <!DOCTYPE rootElementName SYSTEM "path/to/dtdFile.dtd">
    Explanation
    The DOCTYPE declaration specifies the root element of the document and provides a reference to the external DTD file using the SYSTEM keyword followed by the path to the DTD file.

    Rate this question:

  • 5. 

    Writing an Internal DTD inside a DOCTYPE is known as:

    • A.

      Declaration

    • B.

      Wrapping

    • C.

      Sequencing

    Correct Answer
    A. Declaration
    Explanation
    An internal DTD is a set of rules and declarations that define the structure and content of an XML document. In this context, writing an internal DTD inside a DOCTYPE is known as a declaration. The DOCTYPE declaration is used to specify the type of document being defined and can include an internal DTD to define the rules and structure of the document.

    Rate this question:

  • 6. 

    <?xml version="1.0"?> <script> <!CDATA function matchwo(a,b) { if (a < b && a < 0) then    {    return 1    } } >  </script> The above code [http://tr.im/Eodt - code 1]:

    • A.

      A) Generates an error

    • B.

      B) Executes without any error

    Correct Answer
    A. A) Generates an error
    Explanation
    The code generates an error because the "if" statement is not properly formatted. The syntax of the "if" statement should be "if (condition) { code }", but in this code, there is an extra "then" keyword after the condition. This extra keyword causes a syntax error, resulting in the code failing to execute correctly.

    Rate this question:

  • 7. 

    (eval|eval|___) the following value indicates that

    • A.

      A) The value is the name of a notation.

    • B.

      B) The value is a list of entities

    • C.

      C) The value is a character data.

    • D.

      D) None of the above.

    Correct Answer
    B. B) The value is a list of entities
    Explanation
    The correct answer is B) The value is a list of entities. This means that the value in question is a collection of multiple entities or items. It is not a notation, character data, or none of the above.

    Rate this question:

  • 8. 

    <!ELEMENT Circle EMPTY>   <!ATTLIST Circle radius CDATA "20">   The following code indicates that the circle is defined as an empty element,with the radius attribute having a default value of 20 and type CDATA.

    • A.

      A) False

    • B.

      B) True

    Correct Answer
    B. B) True
    Explanation
    The given code indicates that the Circle element is defined as an empty element, meaning it does not have any child elements. It also specifies that the Circle element has an attribute called radius, which has a default value of 20 and is of type CDATA. Therefore, the statement "The following code indicates that the circle is defined as an empty element, with the radius attribute having a default value of 20 and type CDATA" is true.

    Rate this question:

  • 9. 

    XML vocabulary is used for specifying formatting semantics.

    • A.

      A) False

    • B.

      B) True

    Correct Answer
    B. B) True
    Explanation
    XML vocabulary is used for specifying the structure and content of data, not for formatting semantics. XML is a markup language that allows users to define their own tags and structure data in a hierarchical format. It is primarily used for data storage, exchange, and representation, rather than for specifying formatting or visual presentation. Therefore, the correct answer is true.

    Rate this question:

  • 10. 

    Identify the correct statements (choose two)

    • A.

      A) XSL is an extension of HTML.

    • B.

      B) CSS is an extension of HTML

    • C.

      C) CSS is an extension of XML.

    • D.

      D) XSL is an extension of XML

    Correct Answer(s)
    B. B) CSS is an extension of HTML
    D. D) XSL is an extension of XML
    Explanation
    CSS is an extension of HTML because CSS is used to style and format the content of HTML documents. It allows for the separation of presentation and structure, making it easier to design and maintain web pages. XSL is an extension of XML because XSL is a language used to transform XML documents into different formats, such as HTML or PDF. It is commonly used for displaying XML data in a more user-friendly manner.

    Rate this question:

  • 11. 

    It is possible to have a property with multiple values

    • A.

      A) False

    • B.

      B) True

    Correct Answer
    B. B) True
    Explanation
    In CSS, it is possible to assign multiple values to a single property using various techniques such as shorthand properties, comma-separated values, or using multiple declarations for the same property. This allows for more efficient and concise styling of elements with different characteristics.

    Rate this question:

  • 12. 

    Selectors helping us to differentiate between different occurrences of a tag are termed as

    • A.

      A) Multiple Selectors

    • B.

      B) Contextual Selectors

    • C.

      C) Simple selectors

    Correct Answer
    B. B) Contextual Selectors
    Explanation
    Contextual selectors are selectors that help us differentiate between different occurrences of a tag based on their context or relationship with other elements in the HTML structure. They allow us to select elements based on their parent-child relationship, sibling relationship, or ancestor-descendant relationship. This helps in targeting specific elements within a complex HTML structure and applying different styles or behaviors to them.

    Rate this question:

  • 13. 

    HTML linking is one to one and is hardcoded in the HTML file. This indicates that HTML has a robust linking mechanism which is an advantage of using HTML

    • A.

      A) True

    • B.

      B) False

    Correct Answer
    B. B) False
    Explanation
    HTML linking is not one to one and is not hardcoded in the HTML file. In fact, HTML links can be dynamic and can be created using various attributes and properties such as href, src, and action. This allows for flexibility in linking to different web pages, images, or resources. Therefore, the statement that HTML has a robust linking mechanism is not true.

    Rate this question:

  • 14. 

    S{margin-right:-3cm;}             Is the above statement valid?

    • A.

      A) Yes

    • B.

      B) No

    Correct Answer
    A. A) Yes
    Explanation
    The given statement is valid because it is a simple yes or no question and the answer provided is "Yes".

    Rate this question:

  • 15. 

    The element 'Schema' is declared in DTD as having three child elements, which are: (choose three)

    • A.

      A) Datatype

    • B.

      B) ElementType

    • C.

      C) description

    • D.

      D) AttributeType

    • E.

      E) archtype

    Correct Answer(s)
    A. A) Datatype
    B. B) ElementType
    D. D) AttributeType
    Explanation
    The correct answer is A) Datatype, B) ElementType, and D) AttributeType. In a DTD, the 'Schema' element is declared to have three child elements, which are Datatype, ElementType, and AttributeType. These child elements define the data types, element types, and attribute types, respectively, within the schema. The other options, C) description and E) archtype, are not mentioned in the given information and therefore cannot be considered as correct child elements of the 'Schema' element.

    Rate this question:

  • 16. 

    XSLT and CSS are compatible standards.

    • A.

      A) False

    • B.

      B) True

    Correct Answer
    B. B) True
    Explanation
    XSLT (Extensible Stylesheet Language Transformations) and CSS (Cascading Style Sheets) are both standards used for styling and formatting XML and HTML documents. While they have different syntax and purposes, they can be used together to enhance the presentation of web pages. XSLT is primarily used for transforming XML data into different formats, while CSS is used for controlling the visual appearance of HTML elements. Therefore, XSLT and CSS are compatible standards that can be used in conjunction with each other.

    Rate this question:

  • 17. 

    The property 'nextSibling' in DOMDocument Object contains the next node of the previous nodes in the parent's child list.

    • A.

      A) False

    • B.

      B) True

    Correct Answer
    B. B) True
    Explanation
    The statement is true. The property 'nextSibling' in DOMDocument Object does indeed contain the next node of the previous nodes in the parent's child list. This property allows you to access the next sibling node of a given node in the DOM tree structure.

    Rate this question:

  • 18. 

    The 'nextNode' method in the XMLDOMNodeLis Object returns a NULL value if there is no next node.

    • A.

      A) False

    • B.

      B) True

    Correct Answer
    B. B) True
    Explanation
    The 'nextNode' method in the XMLDOMNodeList object returns a NULL value if there is no next node. This means that if there are no more nodes to iterate through, the method will return NULL instead of a valid node. Therefore, the correct answer is B) True, as the statement is true.

    Rate this question:

  • 19. 

    In DOM, it is not necessary that an object for a valid node type will always be returned.

    • A.

      A) False

    • B.

      B) True

    Correct Answer
    B. B) True
    Explanation
    In DOM, it is possible that an object for an invalid node type may be returned. This means that it is not necessary that a valid node type will always be returned in DOM. Therefore, the correct answer is true.

    Rate this question:

  • 20. 

    In CSS, separation of multiple value combinations is by using a:

    • A.

      A) Period (.)

    • B.

      B) Semi-colon (;)

    • C.

      C) Colon (:)

    • D.

      D) Comma (,)

    Correct Answer
    B. B) Semi-colon (;)
    Explanation
    In CSS, multiple value combinations are separated by using a semi-colon (;). This allows the CSS rules to be written in a clear and organized manner, with each value combination ending with a semi-colon to indicate the end of that particular rule. This ensures that the CSS code is properly structured and easy to read and understand.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 28, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Nov 06, 2009
    Quiz Created by
    C0811gv
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.