Question
Which of the following statements is/are FALSE?
I. XML overcomes the limitations in HTML to support a structured way of organizing content.
II. XML specification is not case sensitive while HTML specification is case sensitive.
III. XML supports user defined tags while HTML uses pre-defined tags.
IV. XML tags need not be closed while HTML tags must be closed.
Official answer and solution
- Official answer
- C
- From
- Official GATE 2015 answer key
Solution
Evaluate each comparative statement between XML and HTML specifications.
Evaluating each statement:
- Statement I: XML overcomes the limitations in HTML to support a structured way of organizing content. HTML was designed for presentation/display, whereas XML was created to describe and structure data with extensible meaning. (True)
- Statement II: XML specification is not case sensitive while HTML specification is case sensitive. In fact, the exact reverse is true: XML is strictly case-sensitive (for example, an opening tag and closing tag with differing cases do not match), whereas standard HTML is case-insensitive. (False)
- Statement III: XML supports user defined tags while HTML uses pre-defined tags. XML allows authors to define arbitrary custom domain tags, unlike HTML's fixed tag set. (True)
- Statement IV: XML tags need not be closed while HTML tags must be closed. In XML, all elements must be properly closed to be well-formed; in HTML (prior to XHTML), certain closing tags (such as for p, li, and img elements) can be omitted without breaking document rendering. (False)
Thus, statements II and IV are FALSE (option C).
C
Believing HTML is case-sensitive and XML is case-insensitive, reversing the actual W3C specification rules.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2015 Computer Science and Information Technology (CS) Session 1
- Question
- 25 of 65, printed as CS Q.15
- Section
- Computer Science and Information Technology
This question is from a part of the syllabus that is no longer in GATE CS. It is kept because it was in the paper.
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.