Tuesday, December 30, 2008

EJB sample questions with multiple choices

1.What does CTM stands for

a)CORBA transaction monitor.

b)Component transaction monitor.

c)Component task monitor.



2. javax.ejb.EJBObject extends

a)javax.ejb.EJBHome

b)javax.ejb.SessionBean

c)javax.ejb.Remote

d)java.rmi.Remote



3. Bean's business methods are implemented by

a)javax.ejb.EJBHome

b)javax.ejb.EJBObject

c)javax.ejb.EntityBean



4. All EJB remote interface types types extend

a)javax.ejb.EJBHome

b)javax.ejb.SessionBean

c)javax.ejb.EJBObject



5. The life-cycle methods of a server-side bean are defined by

a)javax.ejb.EJBObject

b)javax.ejb.EJBHome

c)javax.ejb.EntityBean



6. Session beans don’t have

a)ejbCreate() method

b)ejbStore() method

c)ejbRemove() method



7 EntityDescriptor extends

a)SessionDescriptor

b)ControlDescriptor

c)DeploymentDescriptor



8 After an entity bean is instantiated and placed in the pool, it is given reference to a -----------------------

a)javax.ejb.EJBHome

b)javax.ejb.EJBObject

c)javax.ejb.EJBContext



9 State of Entity Bean instances is persisted directly into

a)secondary storage

b)database



10 A stateful session bean is

a)shared among multiple clients

b)not shared among multiple clients



11 Entity beans are

a)shared components

b)non-shared components



12 EJB by default -------------- concurrent access to bean instances.

a)allows

b)prohibits



13 EJB specification -------------- synchronized key words.

a)prohibits

b)allows



14 JRMP lacks inherent support for ------------ and ------------------- services that is part of the

CORBAIIOP specification.



15 When a bean instance is in the --------- state, it can accept client requests.

a)Ready

b)Pooled

c)Does not exist

No comments: