- 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 component represent base datatype of the DOM in DOM Parsing?
Answer : A
Explaination
Node represents the base datatype of the DOM.
Answer : A
Explaination
Yes! Using DOM parser, we can parse, modify or create a XML document.
Q 3 - Which of the following method get called when element starts in SAX parsing?
Answer : C
Explaination
startElement() method is called at the start of an element.
Q 4 - Which component of JDOM Parser represents text of XML tag?
Answer : D
Explaination
Text represents the text of XML tag.
Q 5 - XPath provides powerful path expressions select nodes or list of nodes in XML documents.
Answer : B
Explaination
XPath provides powerful path expressions select nodes or list of nodes in XML 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 is true about Element 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 : B
Explaination
Element Class represents an XML element. Element object has methods to manipulate its child elements,its text, attributes and namespaces.
Answer : A
Explaination
SAX Parser is PUSH API Parser so that client application is required to get information when SAX parser notifies the client application that information is available.
Answer : A
Explaination
Yes! Using SAX parser, we can parse, modify a XML document.
Q 10 - When to use a StAX Parser?
A - You can process the XML document in a linear fashion from the top down.
Answer : C
Explaination
In both of the above situations, StAX parser is preferred.