
- 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 document by loading the complete contents of the document and creating its complete hiearchical tree in memory?
Answer : A
Explaination
Dom Parser parses the document by loading the complete contents of the document and creating its complete hiearchical tree in memory.
Q 2 - Which of the following is true about SAX parsing?
C - The application program provides an 'event' handler that must be registered with the parser.
Answer : D
Explaination
All of the above are true.
Q 3 - Which of the following method get called when document begins in SAX parsing?
Answer : A
Explaination
startDocument() method is called at the beginning of a document.
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 is one of the major element in XSLT standard and is must have knowledge in order to work with XSLT documents.
Answer : B
Explaination
XPath is one of the major element in XSLT standard and is must have knowledge in order to work with XSLT documents.
Q 6 - Which of the following XPath expression ensures that selection starts from the root node?
Answer : B
Explaination
/ ensures that selection starts from the root node.
Q 7 - Which of the following method of DOM4J Parser gets the XML node at particular index in the element?
Answer : C
Explaination
Element.node(index) gets the XML node at particular index in the element.
Q 8 - What is XML Parser?
A - XML Parser provides way how to access data present in an XML document.
B - XML Parser provides way how to modify data present in an XML document.
Answer : C
Explaination
XML Parser provides way how to access or modify data present in an XML document.
Answer : A
Explaination
StAX parser is a PULL API. It means in case of StAX parser, client application need to ask StAX parser to get information from XML whenever it needs.
Q 10 - Which of the following predicate selects the last student element that is the child of the class element?
Answer : B
Explaination
/class/student[last()] predicate selects the last student element that is the child of the class element.