1) The servlet is terminated by calling the _________ method.
- End ()
- Terminate ()
- Destroy ()
- Servlet ()
2) Which component of the following JDOM Parser represents comments in an XML document
- Comment
- Element
- Text
- Attribute
3) Which of the following statement is correct about Marshalling
- Used to write data in XML documents
- Can be used for both writing/reading purposes
- Used to read data from XML documents
- None of the given
4) A servlet life cycle can be defined as the entire process from its creation till the _________.
- Construction
- Destruction
- Initialization
- Constructor
5) The servlet is initialized by calling the ______ method.
- Destroy ()
- Servlet ()
- Service ()
- Init ()
6) Consider a system (application) which have memory and speed constraint. The application is to process XML documents, sort the contents and mail them to a higher configuration machine for transformation. Which is the best approach
- Using SAX based approach is the best.
- DOM and SAX must be used in this context.
- Use DOM based approach
- Use platform native language to process the documents
7) Methods such as start Document, end Document, start Element, and end Element are invoked by _____________.
- Default Handler
- Error Handler
- Content Handler
- DTD Handler
8) JDOM is an open-source java-based library, which works with _________
- SAX APIs
- Both SAX APIs and DOM
- DOM
- None of the given options
9) Converting a Java object into an XML file is called _________.
- Transforming
- Object Conversion
- Un-Marshalling
- Marshalling
10) In SAX parsing, which of the following method is used to read contents
- Start Element ()
- End Element ()
- Start Document ()
- Characters ()