- 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 uses simple text format. It is human readable and understandable.
C - Using XSD, DTD and XML structure can be validated easily.
Answer : D
Explaination
All of the above options are correct.
Q 2 - What SAX stands for?
Answer : B
Explaination
SAX stands for Simple API for XML.
Answer : B
Explaination
No! Using SAX parser, we can only parse or modify a XML document.
Q 4 - Which component of JDOM Parser represents text of XML tag?
Answer : D
Explaination
Text represents the text of XML tag.
Q 5 - Which of the following is true about XPath?
A - XPath is an official recommendation of the World Wide Web Consortium (W3C).
B - It defines a language to find information in an XML file.
Answer : C
Explaination
XPath is an official recommendation of the World Wide Web Consortium (W3C).It defines a language to find information in an XML file.
Answer : A
Explaination
. selects the current 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.
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.
Answer : A
Explaination
Yes! Using SAX parser, we can parse, modify a XML document.
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.