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 - What XML stands for?
XML stands for Extensible Markup Language.
Q 2 - Which of the following method returns the first child of a given Node in DOM Parsing?
Node.getFirstChild() returns the first child of a given Node in DOM Parsing.
Q 3 - Which of the following method get called when element ends in SAX parsing?
endElement() method is called at the end of an element.
Q 4 - Which component of JDOM Parser represents comments in a XML document?
Comment represents comments in a XML document.
Q 5 - XPath is one of the major element in XSLT standard and is must have knowledge in order to work with XSLT documents.
XPath is one of the major element in XSLT standard and is must have knowledge in order to work with XSLT documents.
Q 6 - Which of the following is true about DOM4J Parser?
DOM4J is java optimized, it uses java collection like List and Arrays. It works with DOM, SAX, XPath and XSLT. It can parse large XML document with very low memory footprint.
Q 7 - Which of the following is true about Attribute Class of DOM4J Parser?
Attribute Class represents an attribute of an element. Attribute has method to get and set the value of attribute. It has parent and attribute type.
Q 8 - What is XML Parsing?
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?
JDOM is an open source, java based library to parse XML document and it is typically java developer friendly API.
Yes! Using StAX parser, we can parse, modify and even create a XML document.