
- Java XML Home
- Java XML Overview
- Java XML Parsers
- Java DOM Parser
- Java DOM Parser
- Parse XML Document
- Query XML Document
- Create XML Document
- Modify XML Document
- Java SAX Parser
- Java SAX Parser
- Parse XML Document
- Query XML Document
- Create XML Document
- Modify XML Document
- JDOM XML Parser
- JDOM XML Parser
- Parse XML Document
- Query XML Document
- Create XML Document
- Modify XML Document
- Java StAX Parser
- Java StAX Parser
- Parse XML Document
- Query XML Document
- Create XML Document
- Modify XML Document
- Java XPath Parser
- Java XPath Parser
- Parse XML Document
- Query XML Document
- Create XML Document
- Modify XML Document
- Java DOM4J Parser
- Java DOM4J Parser
- Parse XML Document
- Query XML Document
- Create XML Document
- Modify XML Document
- Java XML Useful Resources
- Java XML - Questions and Answers
- Java XML - Quick Guide
- Java XML - Useful Resources
- Java XML - Discussion
Java XML Online Quiz
Following quiz provides Multiple Choice Questions (MCQs) related to Java XML Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Q 1 - Which of the following parses the XML based on expression and is used extensively in conjuction with XSLT?
Answer : A
Explaination
XPath Parser parses the XML based on expression and is used extensively in conjuction with XSLT.
Q 2 - Which of the following is true about DOM?
A - It is an official recommendation of the World Wide Web Consortium (W3C).
C - XML parsers that support the DOM implement DOM interface.
Answer : D
Explaination
DOM is an official recommendation of the World Wide Web Consortium (W3C). It defines an interface that enables programs to access and update the style, structure,and contents of XML documents. XML parsers that support the DOM implement that interface.
Q 3 - Which of the following is true about JDOM Parser?
A - It is of low memory footprint.
Answer : C
Explaination
JDOM Parser is of low memory footprint and is nearly as fast as SAX.
Q 4 - Which of the following class of StAX parser specifies methods for creating an event?
Answer : B
Explaination
XMLEventWriter specifies methods for creating an event.
Q 5 - XPath provides a rich library of standard functions for manipulation of string values, numeric values, date and time comparison, node and QName manipulation, sequence manipulation, Boolean values etc.
Answer : A
Explaination
XPath provides a rich library of standard functions for manipulation of string values, numeric values, date and time comparison, node and QName manipulation, sequence manipulation, Boolean values etc.
Q 6 - Which of the following XPath expression selects all student elements no matter where they are in the document?
Answer : D
Explaination
//student selects all student elements no matter where they are in the document.
Q 7 - Which of the following is true about Node Class of DOM4J Parser?
A - It represents the entire XML document. A Document object is often referred to as a DOM tree.
C - It represents Element, Attribute or ProcessingInstruction.
Answer : C
Explaination
Node Class represents Element, Attribute or ProcessingInstruction.
Answer : B
Explaination
In XML, custom tags can be created and used very easily.
Answer : A
Explaination
Yes! Using StAX parser, we can parse, modify and create a XML document.
Answer : A
Explaination
Yes! Using StAX parser, we can parse, modify and even create a XML document.