Defining XML - Quiz Explanation

The correct answers are indicated below, along with text that explains the correct answers.
1. Which of the following characteristics accurately describes XML?
Please select the best answer.
  A. XML uses a predefined set of elements.
  B. XML documents provide semantic meaning and structure to data.
  C. XML documents cannot be rendered in a browser.
  D. XML documents cannot be easily exchanged on the Web.
  The correct answer is B.
XML documents provide semantic meaning and structure to data. Answer A is incorrect because XML does not use predefined elements. XML is used to create elements. Answer C is incorrect because XML documents can be rendered using an XML enabled browser. Answer D is incorrect because XML documents are text based documents that may easily be exchanged on the web.


2. Which of the following statements best describes the difference between XML and HTML markup?
Please select the best answer.
  A. XML markup defines content while HTML markup defines formatting.
  B. HTML markup is user defined while XML markup is predefined
  C. XML markup must be terse while HTML markup does not
  D. HTML markup semantically describes the data while XML markup does not.
  The correct answer is A.
XML markup defines content and HTML markup defines formatting. Answer B is incorrect because HTML markup is not user defined. Answer C is incorrect because XML markup is not predefined.
Answer D is incorrect because HTML markup does not describe the semantic meaning of the data while XML markup does.

3. XML is a subset of which of the following languages?
Please select the best answer.
  A. Java
  B. HTML
  C. SGML
  D. Perl
  The correct answer is C.
XML is a subset of SGML. Answers A and D are incorrect because XML is not related to Java or Perl as a Web-aware programming language. Answer B is incorrect because XML may be used to create HTML-like languages but it is not a subset of HTML.

4. An XML document may be rendered in a browser, it may be displayed in a PDA or cell phone, or transmitted as is for content. Which of the following terms describes this capability?
Please select the best answer.
  A. Server-side computing
  B. Enterprise computing
  C. Pervasive computing
  D. Client-side computing
  The correct answer is C.
The ability for an XML document to be rendered in a browser, displayed in a PDA or cell phone, or transmitted as is for content describes pervasive computing. Answers A,B, and D are incorrect because they have no relationship to the aspect of XML documents that makes them usable in many forms.