Which of the following statements regarding XML is/are True? (A) XML is a set…

2020

Which of the following statements regarding XML is/are True?

(A)  XML is a set of tags designed to tell browsers how to display text and images in a web page

(B)  XML defines a syntax for representing data, but the meaning of data varies from application to application

(C)  <Letter>, <LETTER> and  <letter> are three different tags in XML

Choose the correct answer from the options given below:

Answer: C. (B) and (C) OnlyCorrect answer: (B) and (C) Only. Statement about XML being a set of tags for browser display: False. That describes HTML, which is intended for presentation…

  1. A.

    (A) and (B) Only

  2. B.

    (A) and (C) Only

  3. C.

    (B) and (C) Only

  4. D.

    (A), (B) and (C)

Attempted by 225 students.

Show answer & explanation

Correct answer: C

Correct answer: (B) and (C) Only.

  • Statement about XML being a set of tags for browser display: False. That describes HTML, which is intended for presentation in browsers. XML is designed to represent and transport structured data, not to specify presentation.

  • Statement that XML defines a syntax for representing data and meaning varies by application: True. XML defines rules for markup (well-formedness and structure). The semantics of the markup are defined by the application, schema, or conventions that use the XML.

  • Statement that <Letter>, <LETTER> and <letter> are three different tags: True. XML is case-sensitive, so tag names that differ only by letter case are considered distinct elements.

Therefore the only correct combination is the one that includes the data-syntax statement and the case-sensitivity statement, and excludes the presentation-oriented statement.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…