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.

  1. A.

    I and II are false.

  2. B.

    I, III and IV are false.

  3. C.

    I and III are false.

  4. 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, myVar and myvar are 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.

Explore the full course: Tpsc Assistant Technical Officer