Which of the following statements are false? I. XML tags are case-insensitive.…
2017
Which of the following statements are false?
I. XML tags are case-insensitive.
II. In JavaScript, identifier names are case-sensitive.
III. Cascading Style Sheets (CSS) cannot be used with XML.
IV. All well-formed XML documents must contain a document type definition.
- A.
I and II are false.
- B.
I, III and IV are false.
- C.
I and III are false.
- D.
II and IV are false.
Attempted by 130 students.
Show answer & explanation
Correct answer: B
Evaluate each statement:
Statement I is false. XML tag and element names are case-sensitive, so opening and closing tag case must match.
Statement II is true. JavaScript identifiers are case-sensitive; for example,
myVarandmyvarare different identifiers.Statement III is false. CSS can be applied to XML documents for presentation.
Statement IV is false. A DTD is not required for a document to be well-formed; well-formedness is about following XML syntax rules.
Conclusion: statements I, III and IV are false, so the correct option is I, III and IV.