Question 21

Prolog in XML contains an XML declaration like

  1. A<?xml version="1.0">
  2. B<!xml version="1.0">
  3. C</xml version="1.0">
  4. D<\xml version="1.0">
Show answerHide answer

Correct answer: (A) <?xml version="1.0">

Explanation

The XML declaration in the prolog starts with <?xml, as in <?xml version="1.0"?>. Option A is the only one that uses the <? processing-instruction form.

From DSSSB TGT Computer Science Practice Set 5

This is question 21 of DSSSB TGT Computer Science Practice Set 5. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.