Consider the following statements for XML (Extensible Markup Language): A. The…
2025
Consider the following statements for XML (Extensible Markup Language):
A. The number of tags decreases and users can define their own tags.
B. It is used for Presentation.
C. It is case sensitive.
D. It is dynamic.
Which of the above statements are true?
- A.
B, C, D Only
- B.
A, B, D Only
- C.
A, C, D Only
- D.
B, D Only
Attempted by 133 students.
Show answer & explanation
Correct answer: C
Answer: A, C, D
Explanation:
Statement A — The number of tags decreases and users can define their own tags: True. XML does not require a fixed set of predefined tags; developers define tags to describe data, so there is no large fixed tag vocabulary as in some presentation-focused languages.
Statement B — It is used for Presentation: False. XML is designed for describing and transporting structured data (content and meaning). Presentation is handled by other technologies (for example HTML/CSS or XSLT stylesheets applied to XML).
Statement C — It is case sensitive: True. Element and attribute names in XML are case-sensitive (for example, <Item> and <item> are distinct).
Statement D — It is dynamic: True (in the sense used here). XML is extensible and flexible: its structure can be defined or changed to suit data needs, so it supports dynamic and evolving data schemas.
Therefore the correct set of true statements is: users can define their own tags, XML is case-sensitive, and XML is extensible/dynamic.
A video solution is available for this question — log in and enroll to watch it.