- 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 on event based triggers and does not load the complete document into the memory?
Answer : B
Explaination
SAX Parser parses the document on event based triggers and does not load the complete document into the 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 component of JDOM Parser represents DOM tree?
Answer : A
Explaination
Document represents the entire XML document. A Document object is often referred to as a DOM tree.
Q 4 - Which component of JDOM Parser represents XML attribute?
Answer : C
Explaination
Element represents an attribute of an element. Attribute has method to get and set the value of attribute. It has parent and attribute type.
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.
Answer : B
Explaination
No! XPath parser is used to to navigate XML Document only. It is better to use DOM parser for creating XML.
Answer : A
Explaination
Yes! Using DOM4J parser, we can parse, modify and create a XML document.
Q 8 - What is XML Parsing?
Answer : A
Explaination
Parsing XML refers to going through XML document to access data or to modify data in one or other way.
Q 9 - Which of the following is true about JDOM Parser?
A - JDOM is an open source, java based library to parse XML document.
Answer : C
Explaination
JDOM is an open source, java based library to parse XML document and it is typically java developer friendly API.
Q 10 - Which method of the following of StAX Parser can be used to add end element of given name?
A - writeStartElement(String localName)
B - writeEndElement(String localName)
Answer : B
Explaination
writeEndElement(String localName) of XMLStreamWriter class can be used to add end element of given name.