Elance Enterprise Java Beans Test Answers 2015



Where are the EJB classes utilized by applications retained?
Within the rava.xml package.
Within the javax.ejb package.
Within the Javascript package.
Within the Jxva package.


The _______ is the most common exception class.
BeanException
EJBException
RuntimeException
NullPointerException


How are stateless session beans different than stateful session beans?
They are not operational.
They are automatically thread-safe.
They are not thread-safe.
They are operational.


What does it mean when business objects have a state?
They have many clients.
They have no clients.
They have only two clients.
They are limited to a single client at a time.


If you wanted to control the WebLogic Server EJB’s configuration, what is one of the files you would use?
erp.txt
erb-jub.xml
ejb-jar.xml
ejk.xml


EJB stands for ________.
Enterprise Java Beans
Enhanced Java Beans
Example Java Bit code
Enhanced Java Binary


EJB applications are deployed on a ____ compliant Application Server.
J2EE
IEEE
OSHA
SERI


Which of the following contains the EJB container that provides the services for the EJB component?
Component client.
Java client.
EJB Server.
EJB client.


What is RMI-IIOP?
The Java Express Services Daemon.
The Java Open Access Module.
The Java Remote Operation Schedule.
Java Remote Method Invocation interface.


What format is the deployment descriptor document in?
XML
doc
html
PDF


What file format are all of the descriptor files in?
txt
PDF
HTML
XML


EJB is a framework for _____.
C++
Windows
SAP
Java


Does WebLogic server support multiple methods?
It supports only two methods.
Yes, but it is limited at five methods.
No.
Yes.


_______ is not a tag used in an XML bean archive to define a primitive type.
<byte>
<object>
<double>
<int>


Which of the following is one of WebLogic Server's caching abilities?
Processing dual beans.
Caching between transactions.
Processing dual-state beans.
Caching entire programs.


What is another name for a deployment descriptor?
Containment file.
Directory.
Storage file.
Configuration file.


True or False? Enterprise Java 2.0 specification introduces the concept of local beans.
False
True


In passivation, the opposite method from ejbPassivate() is _______.
ejbNew()
ejbActivate()
ejbLoad()
ejbCreate()


True or False? A session bean can only be stateless.
True
False


What is CMC?
Counter-managed contingency.
Currently Managed Content
Container-managed concurrency.
Concurrent-managed content.


What are ACID transactions responsible for?
Mobile-to-website interfacing.
Data to processor interfacing.
Reliable database transactions.
Customer relations.


What is concurrency control?
The control of a single operation in two different ways.
The control of single operations in different ways.
The control of a single operation in many different ways.
The ensuring that two operations within EJB are generated correctly.


When injection is not available, what is the alternative?
Bean interface.
Java interface.
Nothing is available.
Java Naming and Directory Interface


True or False? EJB is a client-side model that encapsulates the business logic of an application.
True
False


Do clients of EJB instantiate beans directly?
No. They need a reference from the Java container.
Yes.
Yes, and they act immediately.
No. They need a reference from the EJB container.


A class is serializable if a class's inheritance hierarchy implements _________.
Serializable or Externalizable
Serializable and Externalizable
Event and Listener
Persistence


The _______ file is an XML file used to describe the properties of a bean.
XML Property
Bean JAR
Application archive
Deployment Descriptor


What is asynchronous pattern?
The simultaneous operation of two programs.
The non synchronous operation of business services within EJB.
Business services operating with other business services.
The operation of a single program in different ways.


What bean represents real-world objects?
Singleton Session Bean.
Stateful Bean.
Entity bean.
Sessionless Bean.


_____ bean stores data for a particular user for a single session.
Java
Entity
Session
Message


A bean _______ is the code responsible for managing beans and the various interfaces.
class
method
object
container


What is lock annotation used for?
It is used to determine which bean will perform which process.
It is used to determine whether a bean will have a state or not.
It is used to decide whether a read lock or write lock is utilized in a method call.
It is used to determine what a bean will do.


What is the EJB container responsible for assigning?
Static session beans.
Stateless session beans.
JNDI names for EJB session beans.
Dynamic session beans.


______ beans represent persistent data storage.
Entity
Entity and Session
Session
Message Driven


Beans are distributed as ____ files.
JAR
JSP
XML
JAX


A ____ tag is used to represent an instance of a class in an XML bean archive.
<double>
<class>
<object>
<byte>


What is the javax.ejb.spi package used for?
A container interface.
A program interface for developers.
A service provider interface.
A user interface.


True or False? A bean class can fire off any type of event except custom events.
True
False


_____ is NOT a method of the EntityBean Interface.
ejbLoad()
ejbNewBean()
ejbStore()
setEntityContext()


True or False? The properties of a bean affect its appearance or internal state.
True
False


How are EJB's two interfaces referred to?
Static and Dynamic.
Home and Remote.
Long and Short.
Intrinsic and Extrinsic.


Object _____ means converting an object into a data stream and writing it to storage.
persistence
serialization
passivation
inheritance


What happens if two calling clients attempt to access a single bean?
The request is canceled and the operation performed again.
The requests are serialized by a container.
The request is channeled redundantly.
EJB becomes corrupted.


What has replaced the deployment descriptor in the newest version of EJB, 3.0?
Java annotations.
Meta annotations.
JavaScript annotations.
XML notations.


What is an example of a stateful session bean process?
The processing of java applets.
The checkout process in a web store.
The idling of a website.
A web counter counting hits.


______ bean supports asynchronous execution.
Message Driven
Stateful
Entity
Session


What three files are used to control WebLogic Server EJB?
ejb-jar.xml, ebj-jar.xml, weblogic-cmp-jar.xml
ejb-jar.xml, webjar.xml, weblogic-comp.xml
jar-jar.xml, weblogic-ejb-jar.xml, weblogic-cmp-jar.xml
ejb-jar.xml, weblogic-ejb-jar.xml, weblogic-cmp-jar.xml


What kind of programming does Java Message Service provide for EJB?
Event-driven programming.
Data-driven programming.
Information-driven programming.
Results-driven programming.


_______ class does not support serialization.
Thread
String
Vector
Component


True or False? For the class to be serializable, you must implement the Serializable interface in your class even if it is already implemented in a superclass.
False
True


_______ provides a means for modifying the appearance and behavior of a bean within an application builder so it meets your specific needs.
Externalization
Serialization
Persistence
Customization


_____ is not an EJB interface.
EJBContext
BeanContext
EJBObject
EJBHome


What is responsible for the user interface logic on a client machine?
EJB Client.
Interface client.
User agent.
Java client.


Can underlying table schemas be changed automatically by your EJB container?
No.
Yes, but they must be configured to do so.
Yes, but they need a second program to be installed.
Yes, and they are automatically configured to do so.


Which of the following is a JNDI scope?
Module
Modular.
Mode.
Mechanism.


True or False? A boolean property in a bean class must have a public get method.
False
True


What two security mechanisms does EJB primarily use?
JCE and JAAS
UVE and DIJ
ETC and DEV
JAC and JAAS


True or False? Any public method that is not part of a property definition is a bean method.
True
False


If a bean is handling transactions via JTA API, what is happening?
It is handling a container and a transaction.
It is handling the transaction rather than a container.
It is handling the container rather than the transaction.
It is handling neither the transaction, nor the container.


When is it ideal to use a singleton session bean?
When you have a very long list of dynamic content.
When you have a dynamic list such as a list of current customers.
When you are using EJB for checkout reasons in a web store.
When the list you will be using is static, such as a price list.


True or False? Client code can access local beans.
False
True


A ______ property consults listeners before making a change and any one of the listeners may veto the change.
bound
constrained
stateful
static


A ______ class for a bean changes how a bean appears in the builder tool by telling which properties should be listed first or which should be hidden.
BeanInfo
BeanContext
Listener
Exception


Use the ______ interface when you need complete control over your bean's serialization.
BeanContext
Serializable
Externalizable
Listener


Are class methods declared by the Home interface tied to a specific instance?
Yes. By the remote interface.
No.
Yes. By the Active interface.
Yes. By the Home interface.


True or False? Enterprise Java bean is a form of Java bean.
False
True


______ is an advantage of a session bean over an entity bean.
A session bean is stateless.
A session bean is more resource intensive.
A session bean is less resource intensive.
A session bean has persistent data storage.


When you create a combination of read-only and read-write EJBs, what pattern are you creating?
Read-sometimes.
Read-occasionally.
Read-mostly.
Read-partially.


A ______ property notifies listeners when its value changes.
constrained
static
bound
stateful


True or False? When an Application Exception occurs, the ejb container intercepts the exception, rolls back the transaction, and starts the clean up tasks.
False
True


What happens if concurrent access is attempted on a single bean?
The request is rerouted to a different interest by the container.
The request is granted, but the bean is frozen until a secondary process unfreezes it.
The request is canceled.
Both requests are granted, but the bean suffers performance issues.


The ______ is an abstract representation of the container system to access a bean through methods that manage actions of the bean.
bean object
component interface
bean interface
home interface


True or False? EJB technology allows users to isolate their business logic away from the data layer by storing with the presentation layer.
True
False


_____ is a model that enables beans to be saved in an XML format.
Inheritance
Long-term persistence
Serialization
BeanContext


Are CMTs active, or passive?
Active.
Both active and passive.
Passive.
Neither.


The listener type of an event must be a descendent of _______.
java.beans.Event
javax.util.EventListener
java.awt.component
java.util.EventListener


What is EJB's transaction processing responsible for?
It divides the processed information into smaller pieces.
It increases the size of processed transactions.
It decodes and encrypts processes.
It processes transactions.


_______ is not true of customizers.
Implement a default constructor.
Extend java.awt.component or one of its subclasses.
Associate the customizer with its target class via BeanInfo.getBeanDescriptor.
Extend the java.beans.Customizer interface.


How many clients can access a stateless session bean?
Ten.
One.
Unlimited.
Two.


EJB's remote interfaces are split into what two groups?
Class and Instance methods.
Stateful and Stateless methods.
Home and Remote methods.
Static and Dynamic methods.

No comments:

Post a Comment