1. |
_____ is responsible to create the object of servlet?
|
||||||||
Answer:
Option (c) |
2. |
When servlet object is created? (select the correct option)
i) When the application begins. ii) When servlet is first accessed. iii) When init() of the servlet is called. iv) When service() of the servlet is called. v) When run() of Servlet is called
|
||||||||
Answer:
Option (b) |
3. |
What happens if you add a main method to servlet?
|
||||||||
Answer:
Option (c) |
4. |
What is MIME Type?
|
||||||||
Answer:
Option (d) |
5. |
Consider a scenario in which 4 users are accessing a servlet instance. Among which one user called destroy() method. What happens to the rest 3 users?
|
||||||||
Answer:
Option (b) |
6. |
Is there any constructor in Servlet?
|
||||||||
Answer:
Option (d) |
7. |
In servlet each request from client is handled by _____
|
||||||||
Answer:
Option (b) |
8. |
Which method is called only once in life cycle of servlet?
i) init() ii) service() iii) destroy()
|
||||||||
Answer:
Option (b) |
9. |
_____ is the parent class of java servlet.
|
||||||||
Answer:
Option (b) |
10. |
_____ is the parent interface of java servlet.
|
||||||||
Answer:
Option (a) |