SlideShare a Scribd company logo
1 of 12
Download to read offline
Skillytaire
5 sample questions about Single Thread Model (CX-310-083)
Tems of use

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




                                           2
Question 1:

    Which of the following statements is true about the Single Thread Model?

A      The single Thread model applies to servlets and JSP's.
B      The single Thread model applies to only JSP's.
C      It is possible that two different requests can be served at the same time by the
       servlet container
D      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




                                          3
Question 1:

    Which of the following statements is true about the Single Thread Model?

A      The single Thread model applies to servlets and JSP's.
B      The single Thread model applies to only JSP's.
C      It is possible that two different requests can be served at the same time by the
       servlet container
D      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




                                          4
Question 2:

    Which of the following statements is true when you make a servlet thread safe?

A      Implement the interface javax.servlet.SingleThreadModel
B      javax.servlet.http.SingleThreadModel
C      javax.servlet.jsp.SingleThreadModel
D      You need to add the element <single-thread>true</single-thread> in the servlet
       mapping in de web.xml




                                          5
Question 2:

    Which of the following statements is true when you make a servlet thread safe?

A      Implement the interface javax.servlet.SingleThreadModel
B      javax.servlet.http.SingleThreadModel
C      javax.servlet.jsp.SingleThreadModel
D      You need to add the element <single-thread>true</single-thread> in the servlet
       mapping in de web.xml




                                          6
Question 3:

    Which of the following statements is true if you make a jsp thread safe?

A      Implement the interface javax.servlet.SingleThreadModel
B      <%@ page threadSafe="true" %>
C      <%@ page isThreadSafe="true" %>
D      You can not make a JSP thread safe




                                           7
Question 3:

    Which of the following statements is true if you make a jsp thread safe?

A      Implement the interface javax.servlet.SingleThreadModel
B      <%@ page threadSafe="true" %>
C      <%@ page isThreadSafe="true" %>
D      You can not make a JSP thread safe




                                           8
Question 4:

    Which of the following statements is true if you make a tag file thread safe?

A      Implement the interface javax.servlet.SingleThreadModel
B      <%@ tag threadSafe="true" %>
C      <%@ tag isThreadSafe="true" %>
D      You can not make a tag file thread safe




                                           9
Question 4:

    Which of the following statements is true if you make a tag file thread safe?

A      Implement the interface javax.servlet.SingleThreadModel
B      <%@ tag threadSafe="true" %>
C      <%@ tag isThreadSafe="true" %>
D      You can not make a tag file thread safe




                                           10
Question 5:

    How many methods should you implement when implementing the interface
    javax.servlet.SingleThreadModel ?

A      0
B      1
C      2
D      3
E      4




                                       11
Question 5:

    How many methods should you implement when implementing the interface
    javax.servlet.SingleThreadModel ?

A      0
B      1
C      2
D      3
E      4




                                       12

More Related Content

Viewers also liked

Trusted advisory on technology comparison --exadata, hana, db2
Trusted advisory on technology comparison --exadata, hana, db2Trusted advisory on technology comparison --exadata, hana, db2
Trusted advisory on technology comparison --exadata, hana, db2Ajay Kumar Uppal
 
SQL Server In-Memory OLTP introduction (Hekaton)
SQL Server In-Memory OLTP introduction (Hekaton)SQL Server In-Memory OLTP introduction (Hekaton)
SQL Server In-Memory OLTP introduction (Hekaton)Shy Engelberg
 
SQL 2016 Mejoras en InMemory OLTP y Column Store Index
SQL 2016 Mejoras en InMemory OLTP y Column Store IndexSQL 2016 Mejoras en InMemory OLTP y Column Store Index
SQL 2016 Mejoras en InMemory OLTP y Column Store IndexEduardo Castro
 
Process Control Block & Threads and Their Management
Process Control Block & Threads and Their ManagementProcess Control Block & Threads and Their Management
Process Control Block & Threads and Their ManagementUjjwal Kumar
 
Data warehouse architecture
Data warehouse architectureData warehouse architecture
Data warehouse architecturepcherukumalla
 
Date warehousing concepts
Date warehousing conceptsDate warehousing concepts
Date warehousing conceptspcherukumalla
 
DATA WAREHOUSING
DATA WAREHOUSINGDATA WAREHOUSING
DATA WAREHOUSINGKing Julian
 
Data Warehouse Design and Best Practices
Data Warehouse Design and Best PracticesData Warehouse Design and Best Practices
Data Warehouse Design and Best PracticesIvo Andreev
 
Data Warehouse Modeling
Data Warehouse ModelingData Warehouse Modeling
Data Warehouse Modelingvivekjv
 

Viewers also liked (14)

Trusted advisory on technology comparison --exadata, hana, db2
Trusted advisory on technology comparison --exadata, hana, db2Trusted advisory on technology comparison --exadata, hana, db2
Trusted advisory on technology comparison --exadata, hana, db2
 
SQL Server In-Memory OLTP introduction (Hekaton)
SQL Server In-Memory OLTP introduction (Hekaton)SQL Server In-Memory OLTP introduction (Hekaton)
SQL Server In-Memory OLTP introduction (Hekaton)
 
Threads 2x[1]
Threads 2x[1]Threads 2x[1]
Threads 2x[1]
 
SQL 2016 Mejoras en InMemory OLTP y Column Store Index
SQL 2016 Mejoras en InMemory OLTP y Column Store IndexSQL 2016 Mejoras en InMemory OLTP y Column Store Index
SQL 2016 Mejoras en InMemory OLTP y Column Store Index
 
Process Control Block & Threads and Their Management
Process Control Block & Threads and Their ManagementProcess Control Block & Threads and Their Management
Process Control Block & Threads and Their Management
 
Multithreading Design Patterns
Multithreading Design PatternsMultithreading Design Patterns
Multithreading Design Patterns
 
1 introduction
1 introduction1 introduction
1 introduction
 
4 threads
4 threads4 threads
4 threads
 
Ch4 Threads
Ch4 ThreadsCh4 Threads
Ch4 Threads
 
Data warehouse architecture
Data warehouse architectureData warehouse architecture
Data warehouse architecture
 
Date warehousing concepts
Date warehousing conceptsDate warehousing concepts
Date warehousing concepts
 
DATA WAREHOUSING
DATA WAREHOUSINGDATA WAREHOUSING
DATA WAREHOUSING
 
Data Warehouse Design and Best Practices
Data Warehouse Design and Best PracticesData Warehouse Design and Best Practices
Data Warehouse Design and Best Practices
 
Data Warehouse Modeling
Data Warehouse ModelingData Warehouse Modeling
Data Warehouse Modeling
 

Similar to 5 sample questions about Single Thread Model (Cx 310 083)

Bea weblogic job_interview_preparation_guide
Bea weblogic job_interview_preparation_guideBea weblogic job_interview_preparation_guide
Bea weblogic job_interview_preparation_guidePankaj Singh
 
Microsoft MCPD 70-492 it examen dumps
Microsoft MCPD 70-492 it examen dumpsMicrosoft MCPD 70-492 it examen dumps
Microsoft MCPD 70-492 it examen dumpslilylucy
 
Introduction to the Servlet / JSP course
Introduction to the Servlet / JSP course Introduction to the Servlet / JSP course
Introduction to the Servlet / JSP course JavaEE Trainers
 
Integrating Servlets and JSP (The MVC Architecture)
Integrating Servlets and JSP  (The MVC Architecture)Integrating Servlets and JSP  (The MVC Architecture)
Integrating Servlets and JSP (The MVC Architecture)Amit Ranjan
 
SCWCD : Thread safe servlets : CHAP : 8
SCWCD : Thread safe servlets : CHAP : 8SCWCD : Thread safe servlets : CHAP : 8
SCWCD : Thread safe servlets : CHAP : 8Ben Abdallah Helmi
 
Multithreading and concurrency in android
Multithreading and concurrency in androidMultithreading and concurrency in android
Multithreading and concurrency in androidRakesh Jha
 
Server side programming bt0083
Server side programming bt0083Server side programming bt0083
Server side programming bt0083Divyam Pateriya
 
Ibm web sphere_job_interview_preparation_guide
Ibm web sphere_job_interview_preparation_guideIbm web sphere_job_interview_preparation_guide
Ibm web sphere_job_interview_preparation_guideKhemnath Chauhan
 
10 sample questions about Dynamic Attributes (CX-310-083)
10 sample questions about Dynamic Attributes (CX-310-083)10 sample questions about Dynamic Attributes (CX-310-083)
10 sample questions about Dynamic Attributes (CX-310-083)Maarten Storm
 
EJ NOV-18 (Sol) (E-next.in).pdf
EJ NOV-18 (Sol) (E-next.in).pdfEJ NOV-18 (Sol) (E-next.in).pdf
EJ NOV-18 (Sol) (E-next.in).pdfSPAMVEDANT
 
15 expression-language
15 expression-language15 expression-language
15 expression-languagesnopteck
 
JEE Course - The Web Tier
JEE Course - The Web TierJEE Course - The Web Tier
JEE Course - The Web Tierodedns
 
Bt0074, oops with java
Bt0074, oops with javaBt0074, oops with java
Bt0074, oops with javasmumbahelp
 
Jeetrainers.com coursejspservlets00
Jeetrainers.com coursejspservlets00Jeetrainers.com coursejspservlets00
Jeetrainers.com coursejspservlets00Rajesh Moorjani
 
Bt0083 server side programming-theory
Bt0083   server side programming-theoryBt0083   server side programming-theory
Bt0083 server side programming-theorysmumbahelp
 
06 response-headers
06 response-headers06 response-headers
06 response-headerssnopteck
 

Similar to 5 sample questions about Single Thread Model (Cx 310 083) (20)

Bea weblogic job_interview_preparation_guide
Bea weblogic job_interview_preparation_guideBea weblogic job_interview_preparation_guide
Bea weblogic job_interview_preparation_guide
 
Microsoft MCPD 70-492 it examen dumps
Microsoft MCPD 70-492 it examen dumpsMicrosoft MCPD 70-492 it examen dumps
Microsoft MCPD 70-492 it examen dumps
 
Introduction to the Servlet / JSP course
Introduction to the Servlet / JSP course Introduction to the Servlet / JSP course
Introduction to the Servlet / JSP course
 
Integrating Servlets and JSP (The MVC Architecture)
Integrating Servlets and JSP  (The MVC Architecture)Integrating Servlets and JSP  (The MVC Architecture)
Integrating Servlets and JSP (The MVC Architecture)
 
SCWCD : Thread safe servlets : CHAP : 8
SCWCD : Thread safe servlets : CHAP : 8SCWCD : Thread safe servlets : CHAP : 8
SCWCD : Thread safe servlets : CHAP : 8
 
Multithreading and concurrency in android
Multithreading and concurrency in androidMultithreading and concurrency in android
Multithreading and concurrency in android
 
Server side programming bt0083
Server side programming bt0083Server side programming bt0083
Server side programming bt0083
 
Ibm web sphere_job_interview_preparation_guide
Ibm web sphere_job_interview_preparation_guideIbm web sphere_job_interview_preparation_guide
Ibm web sphere_job_interview_preparation_guide
 
10 sample questions about Dynamic Attributes (CX-310-083)
10 sample questions about Dynamic Attributes (CX-310-083)10 sample questions about Dynamic Attributes (CX-310-083)
10 sample questions about Dynamic Attributes (CX-310-083)
 
EJ NOV-18 (Sol) (E-next.in).pdf
EJ NOV-18 (Sol) (E-next.in).pdfEJ NOV-18 (Sol) (E-next.in).pdf
EJ NOV-18 (Sol) (E-next.in).pdf
 
15 expression-language
15 expression-language15 expression-language
15 expression-language
 
JSP.pptx
JSP.pptxJSP.pptx
JSP.pptx
 
JEE Course - The Web Tier
JEE Course - The Web TierJEE Course - The Web Tier
JEE Course - The Web Tier
 
Wt unit 3
Wt unit 3 Wt unit 3
Wt unit 3
 
Bt0074, oops with java
Bt0074, oops with javaBt0074, oops with java
Bt0074, oops with java
 
Mvc15 (1)
Mvc15 (1)Mvc15 (1)
Mvc15 (1)
 
Jeetrainers.com coursejspservlets00
Jeetrainers.com coursejspservlets00Jeetrainers.com coursejspservlets00
Jeetrainers.com coursejspservlets00
 
Coursejspservlets00
Coursejspservlets00Coursejspservlets00
Coursejspservlets00
 
Bt0083 server side programming-theory
Bt0083   server side programming-theoryBt0083   server side programming-theory
Bt0083 server side programming-theory
 
06 response-headers
06 response-headers06 response-headers
06 response-headers
 

5 sample questions about Single Thread Model (Cx 310 083)

  • 1. Skillytaire 5 sample questions about Single Thread Model (CX-310-083)
  • 2. Tems of use 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 2
  • 3. Question 1: Which of the following statements is true about the Single Thread Model? A The single Thread model applies to servlets and JSP's. B The single Thread model applies to only JSP's. C It is possible that two different requests can be served at the same time by the servlet container D 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 3
  • 4. Question 1: Which of the following statements is true about the Single Thread Model? A The single Thread model applies to servlets and JSP's. B The single Thread model applies to only JSP's. C It is possible that two different requests can be served at the same time by the servlet container D 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 4
  • 5. Question 2: Which of the following statements is true when you make a servlet thread safe? A Implement the interface javax.servlet.SingleThreadModel B javax.servlet.http.SingleThreadModel C javax.servlet.jsp.SingleThreadModel D You need to add the element <single-thread>true</single-thread> in the servlet mapping in de web.xml 5
  • 6. Question 2: Which of the following statements is true when you make a servlet thread safe? A Implement the interface javax.servlet.SingleThreadModel B javax.servlet.http.SingleThreadModel C javax.servlet.jsp.SingleThreadModel D You need to add the element <single-thread>true</single-thread> in the servlet mapping in de web.xml 6
  • 7. Question 3: Which of the following statements is true if you make a jsp thread safe? A Implement the interface javax.servlet.SingleThreadModel B <%@ page threadSafe="true" %> C <%@ page isThreadSafe="true" %> D You can not make a JSP thread safe 7
  • 8. Question 3: Which of the following statements is true if you make a jsp thread safe? A Implement the interface javax.servlet.SingleThreadModel B <%@ page threadSafe="true" %> C <%@ page isThreadSafe="true" %> D You can not make a JSP thread safe 8
  • 9. Question 4: Which of the following statements is true if you make a tag file thread safe? A Implement the interface javax.servlet.SingleThreadModel B <%@ tag threadSafe="true" %> C <%@ tag isThreadSafe="true" %> D You can not make a tag file thread safe 9
  • 10. Question 4: Which of the following statements is true if you make a tag file thread safe? A Implement the interface javax.servlet.SingleThreadModel B <%@ tag threadSafe="true" %> C <%@ tag isThreadSafe="true" %> D You can not make a tag file thread safe 10
  • 11. Question 5: How many methods should you implement when implementing the interface javax.servlet.SingleThreadModel ? A 0 B 1 C 2 D 3 E 4 11
  • 12. Question 5: How many methods should you implement when implementing the interface javax.servlet.SingleThreadModel ? A 0 B 1 C 2 D 3 E 4 12