- 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
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
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 method returns the root element of the document in DOM Parsing?
Answer : B
Explaination
Document.getDocumentElement() returns the root element of the document in DOM Parsing.
Q 3 - Which of the following is true about JDOM Parser?
A - It is java optimized, it uses java collection like List and Arrays.
B - It works with DOM and SAX APIs and combines the best of the two.
Answer : C
Explaination
JDOM Parser is java optimized, it uses java collection like List and Arrays. It works with DOM and SAX APIs and combines the best of the two.
Q 4 - Which method of JDOM Parser gets the root element of the XML?
Answer : B
Explaination
Document.getRootElement() get the root element of the XML.
Q 5 - XPath defines the parts of an XML document like element, attribute, text, namespace, processing-instruction, comment, and document nodes.
Answer : A
Explaination
XPath defines the parts of an XML document like element, attribute, text, namespace, processing-instruction, comment, and document nodes.
Answer : A
Explaination
. selects the current node.
Q 7 - Which of the following is true about Node 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 : C
Explaination
Node Class represents Element, Attribute or ProcessingInstruction.
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 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.