- 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 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 - Which of the following component represent actual content of an element or attribute in DOM Parsing?
Answer : A
Explaination
Text represents the actual content of an Element or Attr.
Q 3 - Which of the following is true about JDOM Parser?
A - It is of low memory footprint.
Answer : C
Explaination
JDOM Parser is of low memory footprint and is nearly as fast as SAX.
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 used to traverse elements and attributes of an XML document.
Answer : C
Explaination
XPath is used to traverse elements and attributes of an XML document. XPath provides various type of expressions which can be used to enquire relevant information from the XML document.
Answer : B
Explaination
No! XPath parser is used to to navigate XML Document only. It is better to use DOM parser for creating XML.
Q 7 - Which of the following method of DOM4J Parser gets the root element of the XML?
Answer : C
Explaination
Document.getRootElement() gets the root element of the XML.
Answer : B
Explaination
In XML, custom tags can be created and used very easily.
Q 9 - When to use a JDOM Parser?
A - You need to use the information in the document more than once.
B - You are a java developer and want to leverage java optimized parsing of XML.
Answer : C
Explaination
In both of the above situations, JDOM parser is preferred.
Answer : A
Explaination
Yes! Using StAX parser, we can parse, modify and even create a XML document.
To Continue Learning Please Login
Login with Google