JavaBeat
Search JavaBeat

SCBCD TOPICS

scbcd Home

objectives

mock exams

scbcd mock - 1

scbcd mock - 2

scbcd mock - 3

scbcd mock - 4

scbcd mock - 5

scbcd mock - 6

scbcd mock - 7

scbcd mock - 8

scbcd mock - 9

scbcd mock - 10

scbcd mock - 11

scbcd mock - 12

scbcd mock - 13

scbcd mock - 14

JAVABEAT
home
articles
tips
code junction
forums
OUR NETWORK
javabeat

SCBCD Mock Questions - 11

1)Identify correct programming restrictions that a Bean provider must follow to ensure that the enterprise bean is portable and can be deployed in any compliant EJB 2.0 Container. [Select all correct answers]

1)An enterprise bean must not use thread synchronization primitives to synchronize execution of multiple instances.
2)An enterprise bean must not use the java.io package to attempt to access files and directories in the file system.
3)An enterprise bean must not use the JMS API.
4)An enterprise bean must not use the java.util.zip package for reading and writing the standard ZIP.
5)An enterprise bean must not attempt to create a class loader

2)Which of the following are goals of the EJB 2.0 specification? [Select all correct answers]

1)Provide improved support for the persistence of entity beans.
2)Provide support for additional methods in the home interface.
3)Provide support for multi-threading of entity beans.
4)Provide a local client view and support for efficient, lightweight access to enterprise beans from local clients.
5)Provide support and reuse of socket channels.

3)Identify correct programming restrictions that a Bean provider must follow to ensure that the enterprise bean is portable and can be deployed in any compliant EJB 2.0 Container. [Select all correct answers]

1)The enterprise bean cannot define read and write to static fields.
2)The enterprise bean cannot make use of the Java Swing API.
3)The enterprise bean cannot make use of interfaces to define business methods.
4)The enterprise bean cannot make use of the Sun JavaMail API.
5)The enterprise bean must not attempt to define a class in a package.

4)At a certain development stage enterprise beans need to be assembled into a single deployment unit. Identify the correct role?

1)Enterprise Bean Provider.
2)Application Assembler.
3)EJB Container provider.
4)Deployer
5)System Administrator.

5)Identify all correct high-level requirements for the ejb-jar.xml file? [Select all correct answers]

1)The ejb-jar.xml must contain the enterprise bean class.
2)The ejb-jar.xml must contain the primary key class if the enterprise bean is a session bean.
3)The ejb-jar.xml must contain the J2SE classes that the enterprise bean depends on.
4)The ejb-jar.xml must contain the enterprise bean home and component interfaces.
5)The ejb-jar.xml must contain the stubs of the EJBHome and EJBObject interfaces

6)Who's responsibility is it to provide the structural information as given in the exhibit for each enterprise bean in the deployment descriptor?


<enterprise-beans>
   <session id="ShoppingCart">
      <ejb-name>ShoppingCart</ejb-name>
      <local-home>com.baboon.ejb.ShoppingCartHome</local-home>
      <local>com.baboon.ejb.ShoppingCart</local>
      <ejb-class>com.baboon.ejb.ShoppingCartBean</ejb-class>
      <session-type>Stateful</session-type>
      <transaction-type>Container</transaction-type>
   </session>
</enterprise-beans>
1)Application Assembler.
2)Bean provider.
3)EJB Container provider.
4)Deployer.
5)EJB Server provider.

7)Which of the following are overall goals of the EJB architecture? [Select all correct answers]

1)The EJB architecture will provide Message Driven Beans.
2)The EJB architecture will provide a standard component architecture for building distributed business applications.
3)The EJB architecture will provide a standard component architecture for building standalone business client applications.
4)The Enterprise JavaBeans architecture will be compatible with the CORBA protocols.
5)The Enterprise JavaBeans architecture will be compatible with the TCP/IP protocols.

8)What is the name of the role for the person who is a specialist in the area of distributed transaction management, distribute objects, and other lower-level system-level services?

1)EJB Server provider.
2)Application Assembler.
3)EJB Container provider.
4)Deployer.
5)System Administrator.

9)Which functionality is newly introduced in the EJB 2.0 specification? [Select all correct answers]

1)Message driven beans.
2)Remote client view.
3)Local client view.
4)Support for PL/SQL.
5)Enterprise Javabeans Query language.

10)Which of the following API's must the EJB 2.0 container make available to the enterprise bean instances at runtime? [Select all correct answers]

1)JNDI 1.2
2)Java 2 Platform, J2SE 1.4.
3)Java 2 Platform, J2SE 1.3
4)JMX 1.0
5)Hibernate 2.0.1

SCBCD Mock Questions 11 - Answers


Sponsors
Webmaster Hosting Forum
Java Jobs
MyVideoLib
India News
Internet Advances
Latest QnA
SCJD Tips
When we start a thread by applying start() method on it ,how does it knows that to execute run()method?
About Wrapper class in Java
How to configure weblogic 7.0 in MyEclipse?
Static Block and Static Initializer in Java

JavaBeat Media (2004-2008), India
javabeat | planetoss | links directory | advertise
Copyright (2004 - 2008), JavaBeat