5 sample questions about Single Thread Model (Cx 310 083)
Click here to load reader
Transcript of 5 sample questions about Single Thread Model (Cx 310 083)
Skillytaire5 sample questions about Single Thread Model (CX-310-083)
Tems of useTems of use
2
You may use this document for your own purpose only if you leave the document as is.
© Copyright 2010 Prolector.
For more information please visit http://www.prolector.nl
You may use this document for your own purpose only if you leave the document as is.
© Copyright 2010 Prolector.
For more information please visit http://www.prolector.nl
Question 1:Question 1:
3
Which of the following statements is true about the Single Thread Model?
The single Thread model applies to servlets and JSP's.AThe single Thread model applies to only JSP's.BIt is possible that two different requests can be served at the same time by the servlet container
C
The single thread model is a recommended programming model when you need to make sure that you can access your servlet instance variables in a threadsafe way
D
Question 1:Question 1:
4
Which of the following statements is true about the Single Thread Model?
The single Thread model applies to servlets and JSP's.AThe single Thread model applies to only JSP's.BIt is possible that two different requests can be served at the same time by the servlet container
C
The single thread model is a recommended programming model when you need to make sure that you can access your servlet instance variables in a threadsafe way
D
Question 2:Question 2:
5
Which of the following statements is true when you make a servlet thread safe?
Implement the interface javax.servlet.SingleThreadModelAjavax.servlet.http.SingleThreadModelBjavax.servlet.jsp.SingleThreadModelCYou need to add the element <single-thread>true</single-thread> in the servlet mapping in de web.xml
D
Question 2:Question 2:
6
Which of the following statements is true when you make a servlet thread safe?
Implement the interface javax.servlet.SingleThreadModelAjavax.servlet.http.SingleThreadModelBjavax.servlet.jsp.SingleThreadModelCYou need to add the element <single-thread>true</single-thread> in the servlet mapping in de web.xml
D
Question 3:Question 3:
7
Which of the following statements is true if you make a jsp thread safe?
Implement the interface javax.servlet.SingleThreadModelA<%@ page threadSafe="true" %>B<%@ page isThreadSafe="true" %>CYou can not make a JSP thread safeD
Question 3:Question 3:
8
Which of the following statements is true if you make a jsp thread safe?
Implement the interface javax.servlet.SingleThreadModelA<%@ page threadSafe="true" %>B<%@ page isThreadSafe="true" %>CYou can not make a JSP thread safeD
Question 4:Question 4:
9
Which of the following statements is true if you make a tag file thread safe?
Implement the interface javax.servlet.SingleThreadModelA<%@ tag threadSafe="true" %>B<%@ tag isThreadSafe="true" %>CYou can not make a tag file thread safeD
Question 4:Question 4:
10
Which of the following statements is true if you make a tag file thread safe?
Implement the interface javax.servlet.SingleThreadModelA<%@ tag threadSafe="true" %>B<%@ tag isThreadSafe="true" %>CYou can not make a tag file thread safeD
Question 5:Question 5:
11
How many methods should you implement when implementing the interface javax.servlet.SingleThreadModel ?
0A1B2C3D4E
Question 5:Question 5:
12
How many methods should you implement when implementing the interface javax.servlet.SingleThreadModel ?
0A1B2C3D4E