Deck 5: EJB, JSP, and Corba

Full screen (f)
exit full mode
Question
Which interface should be implemented by a stateful session bean if it needs to synchronize its conversational state with the transactional context?

A) javax. transaction. UserTransaction
B) javax. ejb. SessionSynchronization
C) javax. ejb. EJBContext
D) javax. transaction. TransactionContext
Use Space or
up arrow
down arrow
to flip the card.
Question
Which of the following exceptions is thrown by the ejbLoad() method of an entity bean when the database row to be loaded is not found ?

A) NoSuchEntityException
B) EJBException
C) RemoteException
D) ObjectNotFoundException
Question
Which of the following is the format for EJB deployment descriptor files?

A) XML
B) XSL
C) HTML
D) Java
Question
EJB is a

A) Middleware
B) Scalable component architecture
C) Component architecture to integrate legacy systems
D) All of the above.
Question
Which of the following EJB has no state?
i. Message-Driven Bean.
ii. BMP Entity Bean.
iii. Stateless Session Bean.
iv. Stateful Session Bean.

A) Both (I) and (II) above
B) Both (II) and (III) above
C) Both (III) and (IV) above
D) Both (I) and (III) above.
Question
Which of the following is true for EJB?

A) EJB is server-side component architecture for distributed applications in Java
B) EJB facilitates scalable, secure and transaction-oriented applications
C) EJB supports portability and reusability
D) All of the above.
Question
Which of the following EJB type has no Remote interfaces?

A) Message-Driven Bean
B) BMP Entity Bean
C) CMP Entity Bean
D) none
Question
Which role in EJB architecture is responsible for EJB Server?

A) EJB Deployer
B) Application Assembler
C) Network Engineer
D) Server Provider
Question
Which of the EJB has a passive state in its life cycle?
I. Stateless Session Bean.
II. Message-Driven Bean.
III. BMP Entity Bean.

A) Only (I) above
B) Only (II) above
C) Only (III) above
D) Both (I) and (II) above
Question
Which part of multi-tier enterprise application contains EJB component?

A) Application Server
B) Web Server
C) Database Server
D) Fat Client
Question
Which of the following distributed object technology is/are not included in Java?
I. CORBA.
II. DCOM.
III. RMI.
IV. EJB.

A) Only (I) above
B) Only (II) above
C) Only (III) above
D) Only (IV) above
Question
Which of the following is not a property of EJB transaction?

A) Atomicity
B) Consistency
C) Isolation
D) Distributed
Question
Which of the following is not true for servlet?

A) It is persistent
B) Platform independent
C) High performance
D) It is single threaded.
Question
Which JSP tag is used to transfer processing to another JSP page?

A) <jsp:include>
B) <jsp:forward>
C) <jsp:redirect>
D) <jsp:useBean>
Question
Which of the following is an approach for state maintenance in Web applications?

A) Hidden Form Field
B) URL Rewriting
C) Cookies
D) All of the above.
Question
Which of the following is not a container for EJB?
I. Internet Information Server.
II. Java System Application Server.
III. Tomcat.
IV. WebLogic.

A) Both (I) and (II) above
B) Both (II) and (III) above
C) Both (III) and (IV) above
D) Both (I) and (III) above.
Question
Which EJB usually represents persistent data?

A) Entity Bean
B) Stateless Session Bean
C) Stateful Session Bean
D) Message-Driven Bean
Question
Which is least visibility scope for Java bean in JSP?

A) Page
B) Session
C) Request
D) Application
Question
Which of the following is/are true for JSP technology?
I. It is persistent.
II. Platform independent.
III. Browser executes the code.

A) Only (I) above
B) Only (II) above
C) Both (I) and (II) above
D) Both (II) and (III) above
Question
Which of the following is true for JNDI?

A) Database service
B) Naming and Directory Service
C) Network Service
D) Web Service
Question
Which method of the request object is used to extract values of the input fields in a form when it is submitted?

A) getParameter
B) getParameterNames
C) getValues
D) putValues
Question
Which of the following is true for CORBA?

A) Protocol for distributed computing
B) Database specification
C) Specification for distributed objects
D) Both (c) and (d) above.
Question
Which EJB uses EJB-QL for query operations?

A) BMP Entity Bean
B) CMP Entity Bean
C) Session Bean
D) Message-Driven Bean
Question
Which of the following is true for Java Bean?

A) It can not be a GUI component
B) It never implements serializable interface
C) It has zero-argument constructor
D) It is a distributed component
Question
Which of the following is not true for <jsp:useBean> tag in JSP page?

A) Locates a bean instance
B) Stores object reference of the bean in a variable
C) Creates an instance if fails to locate the bean instance
D) All the above.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/25
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 5: EJB, JSP, and Corba
1
Which interface should be implemented by a stateful session bean if it needs to synchronize its conversational state with the transactional context?

A) javax. transaction. UserTransaction
B) javax. ejb. SessionSynchronization
C) javax. ejb. EJBContext
D) javax. transaction. TransactionContext
javax. ejb. SessionSynchronization
2
Which of the following exceptions is thrown by the ejbLoad() method of an entity bean when the database row to be loaded is not found ?

A) NoSuchEntityException
B) EJBException
C) RemoteException
D) ObjectNotFoundException
NoSuchEntityException
3
Which of the following is the format for EJB deployment descriptor files?

A) XML
B) XSL
C) HTML
D) Java
XML
4
EJB is a

A) Middleware
B) Scalable component architecture
C) Component architecture to integrate legacy systems
D) All of the above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
5
Which of the following EJB has no state?
i. Message-Driven Bean.
ii. BMP Entity Bean.
iii. Stateless Session Bean.
iv. Stateful Session Bean.

A) Both (I) and (II) above
B) Both (II) and (III) above
C) Both (III) and (IV) above
D) Both (I) and (III) above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
6
Which of the following is true for EJB?

A) EJB is server-side component architecture for distributed applications in Java
B) EJB facilitates scalable, secure and transaction-oriented applications
C) EJB supports portability and reusability
D) All of the above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following EJB type has no Remote interfaces?

A) Message-Driven Bean
B) BMP Entity Bean
C) CMP Entity Bean
D) none
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
8
Which role in EJB architecture is responsible for EJB Server?

A) EJB Deployer
B) Application Assembler
C) Network Engineer
D) Server Provider
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
9
Which of the EJB has a passive state in its life cycle?
I. Stateless Session Bean.
II. Message-Driven Bean.
III. BMP Entity Bean.

A) Only (I) above
B) Only (II) above
C) Only (III) above
D) Both (I) and (II) above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
10
Which part of multi-tier enterprise application contains EJB component?

A) Application Server
B) Web Server
C) Database Server
D) Fat Client
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following distributed object technology is/are not included in Java?
I. CORBA.
II. DCOM.
III. RMI.
IV. EJB.

A) Only (I) above
B) Only (II) above
C) Only (III) above
D) Only (IV) above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following is not a property of EJB transaction?

A) Atomicity
B) Consistency
C) Isolation
D) Distributed
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
13
Which of the following is not true for servlet?

A) It is persistent
B) Platform independent
C) High performance
D) It is single threaded.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
14
Which JSP tag is used to transfer processing to another JSP page?

A) <jsp:include>
B) <jsp:forward>
C) <jsp:redirect>
D) <jsp:useBean>
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
15
Which of the following is an approach for state maintenance in Web applications?

A) Hidden Form Field
B) URL Rewriting
C) Cookies
D) All of the above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
16
Which of the following is not a container for EJB?
I. Internet Information Server.
II. Java System Application Server.
III. Tomcat.
IV. WebLogic.

A) Both (I) and (II) above
B) Both (II) and (III) above
C) Both (III) and (IV) above
D) Both (I) and (III) above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
17
Which EJB usually represents persistent data?

A) Entity Bean
B) Stateless Session Bean
C) Stateful Session Bean
D) Message-Driven Bean
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
18
Which is least visibility scope for Java bean in JSP?

A) Page
B) Session
C) Request
D) Application
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
19
Which of the following is/are true for JSP technology?
I. It is persistent.
II. Platform independent.
III. Browser executes the code.

A) Only (I) above
B) Only (II) above
C) Both (I) and (II) above
D) Both (II) and (III) above
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
20
Which of the following is true for JNDI?

A) Database service
B) Naming and Directory Service
C) Network Service
D) Web Service
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
21
Which method of the request object is used to extract values of the input fields in a form when it is submitted?

A) getParameter
B) getParameterNames
C) getValues
D) putValues
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
22
Which of the following is true for CORBA?

A) Protocol for distributed computing
B) Database specification
C) Specification for distributed objects
D) Both (c) and (d) above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
23
Which EJB uses EJB-QL for query operations?

A) BMP Entity Bean
B) CMP Entity Bean
C) Session Bean
D) Message-Driven Bean
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
24
Which of the following is true for Java Bean?

A) It can not be a GUI component
B) It never implements serializable interface
C) It has zero-argument constructor
D) It is a distributed component
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
25
Which of the following is not true for <jsp:useBean> tag in JSP page?

A) Locates a bean instance
B) Stores object reference of the bean in a variable
C) Creates an instance if fails to locate the bean instance
D) All the above.
Unlock Deck
Unlock for access to all 25 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 25 flashcards in this deck.