- Java XML Tutorial
- 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 is true about XML?
B - XML is a tag based language like HTML.
Answer : D
Explaination
All of the above options are correct.
Q 2 - Which of the following is true about SAX parsing?
A - SAX is an event-based parser for xml documents.
B - Unlike a DOM parser, a SAX parser creates no parse tree.
Answer : C
Explaination
SAX (the Simple API for XML) is an event-based parser for xml documents.Unlike a DOM parser, a SAX parser creates no parse tree.
Answer : B
Explaination
No! Using SAX parser, we can only parse or modify a XML document.
Q 4 - Which method of JDOM Parser builds the JDOM document from the xml source?
Answer : A
Explaination
SAXBuilder.build(xmlSource) builds the JDOM document from the xml source.
Q 5 - XPath uses a path expression to select node or list of nodes from an xml document.
Answer : A
Explaination
XPath uses a path expression to select node or list of nodes from an xml document.
Q 6 - Which of the following is true about DOM4J Parser?
A - DOM4J is java optimized and uses java collection like List and Arrays.
B - It works with DOM, SAX, XPath and XSLT.
C - It can parse large XML document with very low memory footprint.
Answer : D
Explaination
DOM4J is java optimized, it uses java collection like List and Arrays. It works with DOM, SAX, XPath and XSLT. It can parse large XML document with very low memory footprint.
Q 7 - Which of the following method of DOM4J Parser builds the DOM4J document from the xml source?
Answer : A
Explaination
SAXReader.read(xmlSource) builds the DOM4J document from the xml source.
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.