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 - 5

1)Which of the following statements regarding the resource manager connection factory reference deployment descriptor element are correct? [Select all correct answers]

1)Allows JMS destinations to be defined.
2)Allows relocation of a database without modifying the enterprise bean source code.
3)Enables the bean provider to use JNDI to lookup the home interface of an enterprise bean.
4)Allows the bean provider to reference configurable data that can be changed by a deployer without modifying the enterprise bean's source code.
5)Allows the bean provider to obtain database connections without requiring to specify the user credentials in the enterprise bean's source code.

2)Given an extract of an enterprise bean's deployment descriptor, which of the following code statements can be used to find the currency exchange rate between pound sterling and Japanese yen? [Select all correct answers]


...
<ejb-name>CurrencyConverter</ejb-name>
<ejb-class>com.ejbcertificate.CurrencyConverterBean</ejb-class>
...
<env-entry>
  <description>
    Currency exchange rate between pound sterling and Japanese yen
  </description>
  <env-entry-name>exchangeRate/japan</env-entry-name>
  <env-entry-type>java.lang.String</env-entry-type>
  <env-entry-value>188.418</env-entry-value>
</env-entry>
...
Assume that the following variables have been declared:
  
  Context initCtx= new InitialContext();
  Context envCtx = initCtx.lookup("java:/comp/env");

1)(String)initCtx.lookup("java:/comp/env/exchangeRate/japan");
2)(String)envCtx.lookup("java:/comp/env/exchangeRate/japan");
3)(String)initCtx.lookup("exchangeRate/japan");
4)(String)envCtx.lookup("exchangeRate.japan");
5)(String)envCtx.lookup("exchangeRate/japan");

3)Which of the following deployment descriptor elements allow the bean provider to refer to the homes of other enterprise beans? [Select all correct answers]

1)env-entry
2)env-ref
3)env-local-ref
4)ejb-ref
5)ejb-local-ref

4)Which of the following responsibilities regarding EJB references belong to the application assembler? [Select all correct answers]

1)Declaring the EJB reference in the deployment descriptor.
2)Linking an EJB reference to a target enterprise bean.
3)Binding the homes of enterprise beans that exist in the target operational environment.
4)Ensuring that the target enterprise method is type-compatible with the declared EJB reference.
5)Ensuring that all the declared EJB references are bound to the home of enterprise beans.

5)Which of the following statements regarding an enterprise bean's environment JNDI naming are correct? [Select all correct answers]

1)java:comp/env is the JNDI name of an enterprise bean's environment.
2)An enterprise bean's configuration data cannot be declared in a subcontext of the enterprise bean's environment.
3)EJB references must be declared in the ejb subcontext of the enterprise bean's environment.
4)JDBC DataSource references must be declared in the jdbc subcontext of the enterprise bean's environment.
5)URL connection factories may be declared in java:comp/env.

6)Who is responsible for configuring resource managers in the EJB server environment?

1)Bean provider
2)Application assembler
3)Deployer
4)Container
5)System administrator

7)Which one of the following statements regarding an enterprise bean's environment is correct?

1)Multiple deployments of the same enterprise bean result in the same home.
2)Enterprise bean instances are permitted to modify the bean's environment at runtime.
3)Environment entries can be shared with different enterprise beans.
4)Only the same environment entry values can be set for an enterprise bean.
5)Each enterprise bean defines its own set of environment entries.

8)What are the purposes of the environment entry deployment descriptor element? [Select all correct answers]

1)Allows JMS destinations to be defined so that they can be bound to the target operational environment by the deployer.
2)Allows the password required by a database connection to be externally configured.
3)Describes the configuration details that the enterprise bean expects to be provided in its environment at runtime.
4)Allows configuration values used by an enterprise bean to be modified at deployment time without changing the enterprise bean's source code .
5)Avoids the use of property files as storage of configuration details, which is used by an enterprise bean.

9)Which one of the following is the container provider responsible for?

1)Linking an EJB reference to a target enterprise bean.
2)Binding the homes of enterprise beans that exist in the target operational environment.
3)Declaring the EJB reference in the deployment descriptor.
4)Providing tools that notify that there are unresolved EJB references.
5)Ensuring that the target enterprise method is type-compatible with the declared EJB reference

10)Which of the following statements regarding an enterprise bean's environment are correct? [Select all correct answers]

1)The container provides the tools that allow the deployer to create and manage the enterprise bean's environment.
2)Enterprise bean instances can modify the values of the environment entries at runtime.
3)The deployer sets and modifies the values of the environment entries by editing the enterprise bean's deployment descriptor.
4)Enterprise bean instances obtain the values of the environment entries from the enterprise bean's deployment descriptor.
5)Enterprise bean instances use the JNDI interfaces to obtain the values of the environment entries.

SCBCD Mock Questions 5 - 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