Which Statement about xml is true?

  1. Elements may have multiple atrribute with the same name

  2. Quoting attribute is optional

  3. Elements may nest but not overlap

  4. All of the above.


Correct Option: C

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Elements may have multiple attributes with the same name - This option is incorrect. In XML, elements cannot have multiple attributes with the same name. Each attribute within an element must have a unique name.

Option B) Quoting attribute is optional - This option is incorrect. In XML, attribute values must always be quoted. The quotes can be either single or double quotes, but they are required to specify the attribute value.

Option C) Elements may nest but not overlap - This option is correct. In XML, elements can be nested within each other, meaning an element can be a child of another element. However, elements cannot overlap or be positioned within each other.

Option D) All of the above - This option is incorrect because only Option C is true.

The correct answer is C. Elements may nest but not overlap. This means that elements in XML can be nested within each other, but they cannot be positioned or overlapped within each other.

Find more quizzes: