Attributes Entitites   «Prev  Next»


XML Parser - Quiz

Each question is worth one point. Select the best answer or answers for each question.

1. Which of the following operations is performed by a validating parser?
Please select the best answer.
  A. It checks an XML document for well-formedness.
  B. It checks the XML document for validity.
  C. It checks the XML document for well-formedness and validity.
  D. It parses an XML document using the DOM model.

2. Which of the following statements describes how the DOM works?
Please select the best answer.
  A. DOM generates a tree-like structure for the entire contents of the document.
  B. DOM is based on events.
  C. DOM is used only by validating parsers.
  D. DOM is used only by non-validating parsers.

3. What is the first step in using an XML parser in an application?
Please select the best answer.
  A. Process the input XML document.
  B. Create a parser object instance.
  C. Use methods of the DOM to retrieve element contents.
  D. D:
  E. Pass the XML document to the parser.

Your score is 0.0