1. Which of the following problem occurs with lower priority threads?
a) Starvation
b) Average waiting time
c) Race condition
d) Process death
2. Web.xml is a --------------
a) Servlet file
b) Configuration file
c) Jar file
d) Java file
3. Which of the following variable value will not be set during the installation and configuration of apache tomcat server?
a) Java_home
b) Classpath
c) Catalina_home
d) Jdk_home
4. The newly created thread can be moved to "ready state" by calling--------------method
a) Sleep()
b) Start()
c) Wait()
d) Yield()
5. Which of the following is not a servlet related package?
a) Javax.servlet.servlet
b) Javax.servlet
c) Ja5.vax.servlet.http
d) Javax.servlet.swt
7. HTTP response code 403 indicates that-----------
a) access to the requested resource was successful
b) resource has been destroyed
c) access to the requested resource has been denied
d) resource can be accessed after one hour
8. When a thread is in "new state" during its lifecycle, it is--------------
a) In ready queue
b) Just created
c) Being assigned a processor to run
d) Ready to run
9. In the context of HTTP response code, the values in the 200s signify that--------
a) Request was successful
b) Request was not successful
c) Error by server
d) Error by client
10. Which of the following is not the stage of servlet lifecycle?
a) Wait
b) Service
c) Destroy
d) Initialize
11. Request and response of servlet are handled at -----------------stage
a) Destroy
b) Initialize
c) Failure
d) Service
12. At servlet service stage, webserver invokes-------------method
a) Servletservices()
b) Services()
c) servicesSvlt()
d) svltServices()
13. Choose correct line of code to start a thread 't' in Java
a) t.start()
b) t-start()
c) t=start()
d) t->start()
14. HTTP response code 401 indicates that
a) Request resource is available
b) Request requires HTTP authentication
c) Error by server
d) Request resource is not available
15. "Ready state" means a thread is in------------
a) New state
b) Waiting state
c) Ready state
d) Dead state