1
Which of the following are the main methods in
java.sql.Connection interface that are used for handling
transactions?
1. SetAutoCommit()
2. commit()
3. rollback()
1, 2
2, 3
1, 3
1, 2, 3
2
Which of the following methods of the
javax.ejb.SessionSynchronization interface are used for handling
transactions in the stateful session beans?
1. afterBegin()
2. beforeBegin()
3. afterCompletition(boolean committed)
4. beforeCompletition(boolean committed)
1, 2, 3
2, 3, 4
1, 3, 4
1, 2, 3, 4
3
The JMS API architecture is composed of which of the following
parts?
1. JMS Provider
2. JMS Clients
3. Messages
4. Administered Objects
1, 2, 3
2, 3, 4
1, 3, 4
1, 2, 3, 4
4
A transacted session supports ____________________series of
transaction.
Single
Multiple
Double
Triple
5
The identity of both stateful and stateless session beans can be
compared using the _________ method.
isIdentical()
Identical()
Compare()
6
The ________ method of the CMP Bean is called by the container
to disassociate a bean from its environment.
ejbRemove()
unsetEntityContext()
ejbPassivate()
7
_____________ are implemented differently in both CMP and
BMP beans.
Containers
Container call back methods
Instance of an entity bean
8
BNF schemas created using BNF symbols use these schemas to
declare ________ in EJB QL.
Queries
Functions
Relations
9
The _________ isolation anomaly occurs when data is changed
between two consecutive reads by a transaction.
Phantom Read
Non-Repeatable Read
Dirty Read
10
The _________ manages interactions between applications and the
application server.
Container
Transaction manager
CMT
11
The ___________ controls JDBC transactions using the commit ()
and rollback() methods.
DBMS transaction manager
DQL transaction manager
Transaction server
12
The __________ field provides a way to correlate messages in a
request/response type of setup.
JMSCorrelationID
JMSDestination
JMSExpiration
13
In __________, J2EE architecture makes use of a Message-Driven
bean for fulfilling the requests of the client.
Resource facade
Session fa?ade
Message fa?ade
14
In __________, an end user is required to authenticate by
providing necessary authentication data only when the user tries
to access a secured resource.
J2EE security architecture
Lazy authentication
Resource security
15
Which of the following method of Entity Beans is used to retrieve
information from the database?
retrieve
finder
remove
home
16
Which of the following deployment descriptor contains the details
about the classes and interfaces which compose an EJB application
along with the persistence details in case of an Entity Bean?
application.xml
web.xml
ejb.xml
ejb-jar.xml
17
Which of the following exception is thrown if the container
encounters a problem in searching a particular record?
Finder Exception
Duplicate Key Exception
Remove Exception
Create Exception
18
Which of the following behavioral UML diagram focuses on the
type and order of messages passed between elements during
execution?
Sequence
State Machine
Timing
Use Case
19
Which of the following ACID property specifies that each
transaction should be allowed to execute independently?
Atomicity
Isolation
Consistency
Durability
20
Which of the following messaging domain models allow multiple
applications or components to receive the same message?
Point to Point
Point to Publish
Publish and Subscribe
Point and Subscribe
21
EJB QL supports path navigation using a __________.
Dot (.)
Arrow (->)
Hyphen (-)
Equal to (=)
22
Which of the following are the properties of a
transaction?
1. Isolation
2. Durability
3. Atomicity
4. Consistency
1, 2, 3
2, 3, 4
1, 3, 4
1, 2, 3, 4
23
Which of the following properties of a transaction ensures that
each transaction should be allowed to execute independently
without interference from other transactions or processes?
Atomicity
Consistency
Isolation
Durability
24
Which of the following components of the Transaction processing
are EJB business methods which invoke transactions?
Application Components
Resource Managers
Transaction Manager
All of the above
25
___________________transaction contains one main transaction
with one or smaller transactions embedded within it.
Flat
Nested
Joint
Main