0% found this document useful (0 votes)
8 views3 pages

Servlet Basics Quiz Results

The document summarizes the results of a quiz on servlet basics. The user scored 20% by answering 4 out of 10 questions correctly. The quiz covered topics like the servlet lifecycle methods, HTTP methods, and the relationships between servlets, servlet contexts, and servlet configurations.

Uploaded by

anurag kumar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

Servlet Basics Quiz Results

The document summarizes the results of a quiz on servlet basics. The user scored 20% by answering 4 out of 10 questions correctly. The quiz covered topics like the servlet lifecycle methods, HTTP methods, and the relationships between servlets, servlet contexts, and servlet configurations.

Uploaded by

anurag kumar
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Your Session results

Quiz: Servlet Basics Set 4


Score: 20% (input issues not assessed are not counted in
the score!)
Unanswered: 1
Whi ch li fe cycle metod is cal led once in tservlet l ife?
Explanati on:
class loading
init()
service()
destroy() (wrong)
Whi ch method is call ed when cl ient request come?
Explanati on:
get()
post()
init()
service() (correct)
Whi ch method doesn't exists in HttpServlet Class?
Explanati on:
service (wrong)
init
doGet
doPost
Whi ch interface contain servl et life-cycle methods?
Explanati on:
Thank you for taking this qui z MOST READ
ARTICLES
Computer
Awareness
Home
Complex
Queries in
SQL ( Oracle
)
Struts2
Interview
Questions
and Answers
Quiz Home
J ava
Programming
Interview
Questions
Search
Home Joomla! Java Flex Stel ent/Oracle UCM Database Php Web
Quiz Downl oads
[Link] [Link]
1 of 3 6/28/2014 1:08 AM
HttpServlet (wrong)
GenericServlet
Service
Servlet
Whi ch of these li fe-cycl e method you can over-ride in your class?
Explanati on:
init() (wrong)
service()
doGet()
All of these
Whi ch statements are true about ServletConfig?
Explanati on:
There is one servlet config per one application (wrong)
We can access ServletContext through it (correct)
provide deploy-time information to server (omitted)
There is one servlet config per one servlet (omitted)
Whi ch statement i s not true about ServletContext?
Explanati on:
There is one ServletContext per one application
Generally it is used to get web app parameters
We can get Server Information though it
There is one ServletContext per one servlet
Whi ch http method is idempotent?
Explanati on:
get
post (wrong)
trace
option
If you are not putting method name i n your form tag, what is the
default method?
Explanati on:
get
post (wrong)
Whi ch method deci de which method will call i .e doGet() or doPost()
based on http method of http request?
[Link] [Link]
2 of 3 6/28/2014 1:08 AM
TOP
Explanati on:
doOption
doTrace
doMethod
Service (correct)
[Link] [Link]
3 of 3 6/28/2014 1:08 AM

You might also like