Deck 4: Java, Servlets, JSP and EJB

ملء الشاشة (f)
exit full mode
سؤال
Which attribute is used to hold the Java Script Version?

A) SCRIPT
B) VERSION
C) LANGUAGE
D) VER
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
JavaScript RegExp Object has modifier 'i' to __________

A) Perform case-sensitive matching
B) Perform case-insensitive matching
C) Perform both case-sensitive&case-insensitive matching
D) None of above
سؤال
How many ServletContext objects are available for an entire web application?

A) One each per servlet
B) One each per request
C) One each per response
D) Only one
سؤال
Which of the following delegates the request handling to the RequestProcessor instance?

A) ActionServlet
B) Action class
C) Deployment descriptor
D) None of the above
سؤال
How many instances can be created per application module by the RequestProcessor class?

A) Four
B) Three
C) One
D) Uncountable instances
سؤال
An instance of Action is invoked by

A) ActionServlet
B) ActionListener
C) RequestProcessor
D) All of the above
سؤال
Application module selection is done by

A) Action class
B) ActionServlet
C) RequestProcessor
D) All of the above
سؤال
Which of the following methods is overridden by Action class?

A) execute()
B) service()
C) run()
D) destroy()
سؤال
Which of the following should always forwards or redirect to a resource (view) after completed?

A) HttpResponse object
B) ActionServlet
C) Action class
D) Request Processor
سؤال
Which of the following acts as a bridge between user-invoked URI and a business method?

A) HttpRequest
B) Action class
C) ActionServlet
D) RequestProcessor
سؤال
Struts framework

A) should always decouple the application from a specific model implementation
B) provides model components
C) does not support JavaBeans and EJB
D) has built-in support for the model
سؤال
Which of the following tags in struts-config. xml file defines the availability of necessary Struts JSP custom tag libraries?

A) < jsp-lib>
B) < struts-taglib>
C) < taglib>
D) < jsp-taglib>
سؤال
Which can generate HTML dynamically on the client but can hardly interact with the web server to perform complex tasks like database access and image processing etc. in JSP?

A) vs. Static HTML
B) vs. Server-Side Includes
C) vs. Pure Servlets
D) Vs. JavaScript
سؤال
Which attribute specifies a JSP page that should process any exceptions thrown but not caught in the current page?

A) The ErrorPage Attribute
B) The IsErrorPage Attribute
C) Both A & B
D) None of the above
سؤال
What technique is used for the authentication mechanism in the servlet specification?

A) Role Based Authentication
B) Form Based Authentication
C) Both A & B
D) None of the above
سؤال
In JSP Action tags which tags are used for bean development?

A) jsp:useBean
B) jsp:setPoperty
C) jsp:getProperty
D) All mentioned above
سؤال
Which two interfaces does the javax. servlet. jsp package have?

A) JspPage
B) HttpJspPage
C) PageContext
D) Both A & B
سؤال
Which of the following is an advantage of the statement - Separation of business logic from JSP?

A) Custom Tags in JSP
B) JSP Standard Tag Library
C) All the above
D) None of the above
سؤال
JSPs eventually are compiled into Java servlets, you can do as much with JSPs as you can do with Java servlets.

A) True
B) False
C) none
D) all
سؤال
How many jsp implicit objects are there and these objects are created by the web container that are available to all the jsp pages?

A) 8
B) 9
C) 10
D) 7
سؤال
JavaServer Pages often serve the same purpose as programs implemented using the Common Gateway Interface (CGI)

A) True
B) False
C) none
D) all
سؤال
Which action tags are used in JSP for developing web application with Java Bean?

A) jsp:useBean
B) jsp:setProperty
C) jsp:getProperty
D) Both B & C
سؤال
Which statement correctly identifies the goals of the designers of the EJB architecture?

A) The EJB architecture requires that users be aware of the low-level transaction details of the Java EE platform.
B) The EJB architecture is the standard component architecture for building distributed business applications in the Java programming language. ()
C) Although the EJB architecture defines the contracts that enable tools to develop and deploy components, each application server vendor must produce its own set of additional tooling.
D) The EJB architecture provides a standard way of persisting state data using the Java Persistence API, Java Data Objects, and JDBC.
سؤال
Which statement about life-cycle callback methods is correct?

A) Life-cycle callback methods must be implemented in the bean class.
B) Life-cycle callback methods can have public, private, protected, or packagelevel access. ()
C) A life-cycle callback method can only have a single callback annotation. In other words, you cannot define a single method and give it two different callback annotations.
D) Life-cycle callback methods can be declared as static.
سؤال
Which of the following types of Enterprise Java Bean will be most likely to be difficult to port from one App Server to another?

A) Stateful Session Beans
B) Stateless Session Bean
C) BMP (Bean Managed Persistence) Entity Bean
D) CMP (Container Managed Persistence) Entity Bean
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 4: Java, Servlets, JSP and EJB
1
Which attribute is used to hold the Java Script Version?

A) SCRIPT
B) VERSION
C) LANGUAGE
D) VER
LANGUAGE
2
JavaScript RegExp Object has modifier 'i' to __________

A) Perform case-sensitive matching
B) Perform case-insensitive matching
C) Perform both case-sensitive&case-insensitive matching
D) None of above
Perform case-insensitive matching
3
How many ServletContext objects are available for an entire web application?

A) One each per servlet
B) One each per request
C) One each per response
D) Only one
Only one
4
Which of the following delegates the request handling to the RequestProcessor instance?

A) ActionServlet
B) Action class
C) Deployment descriptor
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
5
How many instances can be created per application module by the RequestProcessor class?

A) Four
B) Three
C) One
D) Uncountable instances
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
6
An instance of Action is invoked by

A) ActionServlet
B) ActionListener
C) RequestProcessor
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
7
Application module selection is done by

A) Action class
B) ActionServlet
C) RequestProcessor
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
8
Which of the following methods is overridden by Action class?

A) execute()
B) service()
C) run()
D) destroy()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
9
Which of the following should always forwards or redirect to a resource (view) after completed?

A) HttpResponse object
B) ActionServlet
C) Action class
D) Request Processor
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
10
Which of the following acts as a bridge between user-invoked URI and a business method?

A) HttpRequest
B) Action class
C) ActionServlet
D) RequestProcessor
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
11
Struts framework

A) should always decouple the application from a specific model implementation
B) provides model components
C) does not support JavaBeans and EJB
D) has built-in support for the model
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which of the following tags in struts-config. xml file defines the availability of necessary Struts JSP custom tag libraries?

A) < jsp-lib>
B) < struts-taglib>
C) < taglib>
D) < jsp-taglib>
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
13
Which can generate HTML dynamically on the client but can hardly interact with the web server to perform complex tasks like database access and image processing etc. in JSP?

A) vs. Static HTML
B) vs. Server-Side Includes
C) vs. Pure Servlets
D) Vs. JavaScript
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
14
Which attribute specifies a JSP page that should process any exceptions thrown but not caught in the current page?

A) The ErrorPage Attribute
B) The IsErrorPage Attribute
C) Both A & B
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
15
What technique is used for the authentication mechanism in the servlet specification?

A) Role Based Authentication
B) Form Based Authentication
C) Both A & B
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
16
In JSP Action tags which tags are used for bean development?

A) jsp:useBean
B) jsp:setPoperty
C) jsp:getProperty
D) All mentioned above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
17
Which two interfaces does the javax. servlet. jsp package have?

A) JspPage
B) HttpJspPage
C) PageContext
D) Both A & B
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
18
Which of the following is an advantage of the statement - Separation of business logic from JSP?

A) Custom Tags in JSP
B) JSP Standard Tag Library
C) All the above
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
19
JSPs eventually are compiled into Java servlets, you can do as much with JSPs as you can do with Java servlets.

A) True
B) False
C) none
D) all
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
20
How many jsp implicit objects are there and these objects are created by the web container that are available to all the jsp pages?

A) 8
B) 9
C) 10
D) 7
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
21
JavaServer Pages often serve the same purpose as programs implemented using the Common Gateway Interface (CGI)

A) True
B) False
C) none
D) all
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
22
Which action tags are used in JSP for developing web application with Java Bean?

A) jsp:useBean
B) jsp:setProperty
C) jsp:getProperty
D) Both B & C
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
23
Which statement correctly identifies the goals of the designers of the EJB architecture?

A) The EJB architecture requires that users be aware of the low-level transaction details of the Java EE platform.
B) The EJB architecture is the standard component architecture for building distributed business applications in the Java programming language. ()
C) Although the EJB architecture defines the contracts that enable tools to develop and deploy components, each application server vendor must produce its own set of additional tooling.
D) The EJB architecture provides a standard way of persisting state data using the Java Persistence API, Java Data Objects, and JDBC.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
24
Which statement about life-cycle callback methods is correct?

A) Life-cycle callback methods must be implemented in the bean class.
B) Life-cycle callback methods can have public, private, protected, or packagelevel access. ()
C) A life-cycle callback method can only have a single callback annotation. In other words, you cannot define a single method and give it two different callback annotations.
D) Life-cycle callback methods can be declared as static.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
25
Which of the following types of Enterprise Java Bean will be most likely to be difficult to port from one App Server to another?

A) Stateful Session Beans
B) Stateless Session Bean
C) BMP (Bean Managed Persistence) Entity Bean
D) CMP (Container Managed Persistence) Entity Bean
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 25 في هذه المجموعة.