• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Some Q's

 
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. An applet will directly accesses Database using
JDBC. No database installation (or) configuration is
to be perform on client workstations which JDBC driver
used in this situation.
a) Type-1 JDBC-ODBC Bridge Driver
b) Type-2 Native API partly Java Driver
c) Type-3 JDBC-Net pure Java Driver
d) Type-4 Native protocol pure Java Driver
e) Type-5 Standard internet driver
2. Which is true in Container Managed Persistent(CMP)
Enterprise bean.
a) Container managed fields must be declared as Public
b) The Primary Key can be defined at deployment time.
c) The SQL for any finder methods is stored in the Deployment Discriptor
d) Fields to table mapping information is stored in Deployment Discriptor
3. Dynamic access to remote CORBA objects is obtained
by client side applications via
a) location directory
b) implementation repository
c) object registry
d) naming server directory
e) interface respiratory
4. Which of the method names of ejb avail thru' JNDI
a) register()
b) put()
c) bind()
d) store()
e) insert()
5. Select the distributed object protocol from following.
a) RPC
b) CORBA
c) RMI-IIOP
d) RMI-JRMP
6. A "Singleton" is a design pattern, which states
that a class has only one instance, with global access
to it, Given an Order Entity EJB, which of the
following is a Singleton
a) Orderitem
b) OrderBean
c) OrderRemote
d) Order
7. Which middle ware solution is BEST fit when
anonymously accessing the server under the firewalls
of Internet.
a) RMI
b) Servelets
c) CORBA
d) EJBs
8.A reference to an EJB can be stored by a client for later use by:
a) serializing the EJBObject to disk
b) Adding the object to the server's pooled objects
c) implementing a find<method> for the bean
d) storing the Handle of the EJB for the bean object
9. What manner a developer define asynchronous method in CORBA
a) outKeyword in IDL
b) asynchronousKeyword in IDL
c) nowaitKeyword in IDL
d) onewayKeyword in IDL
e) any one method of a void return types,does only
input parameters and throws no exceptions.
10.A developer successfully creating and tests a stateful bean following deployment, intermittent "NullpointerException" begin to occur, particularly when the server is hardly loaded. What most likely to related problem.
a) setSessionContext
b) ejbCreate
c) ejbPassivate
d) beforeCompletion
e) ejbLoad
11. 2 programs are there- and running concurrently.
Both will select multiple rows from the table. No
table updates can occur while the 2 programs are
running. Which isolation can provide BEST performance
while priventing conflicts?
a) TRANSACTION-NO
b) TRANSACTION-READ-UNCOMMITTED
c) TRANSACTION-READ-COMMITTED
d) TRANSACTION-REPEATABLE-READ
e) TRANSACTION-SERIALIZABLE
 
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. An applet will directly accesses Database using
JDBC. No database installation (or) configuration is
to be perform on client workstations which JDBC driver
used in this situation.
a) Type-1 JDBC-ODBC Bridge Driver
This is ruled out as this requires ODBC configuration on client machine.
b) Type-2 Native API partly Java Driver
this is also ruled out as applet cannot access native code.
c) Type-3 JDBC-Net pure Java Driver
This is correct as the driver is dynamically downloaded
d) Type-4 Native protocol pure Java Driver
This is ruled out for the reason mentioned for b.
e) Type-5 Standard internet driver
This is wrong as there is not such driver as this.
2. Which is true in Container Managed Persistent(CMP)
Enterprise bean.
a) Container managed fields must be declared as Public
b) The Primary Key can be defined at deployment time.
c) The SQL for any finder methods is stored in the Deployment Discriptor
d) Fields to table mapping information is stored in Deployment Discriptor
a,b and d are correct.
3. Dynamic access to remote CORBA objects is obtained
by client side applications via
a) location directory
b) implementation repository
c) object registry
d) naming server directory
e) interface respiratory
e should interface repository. b and e should be right. Not sure.
4. Which of the method names of ejb avail thru' JNDI
a) register()
b) put()
c) bind()
d) store()
e) insert()
Neither of the above is correct
5. Select the distributed object protocol from following.
a) RPC
b) CORBA
c) RMI-IIOP
d) RMI-JRMP
a and b are wrong as they are not protocols. d is not a distributed object protocol. answer is c.
6. A "Singleton" is a design pattern, which states
that a class has only one instance, with global access
to it, Given an Order Entity EJB, which of the
following is a Singleton
a) Orderitem
b) OrderBean
c) OrderRemote
d) Order
the question is clear enough. b represents the bean class, c represent the Remote interface. what does a and d represent?
7. Which middle ware solution is BEST fit when
anonymously accessing the server under the firewalls
of Internet.
a) RMI
b) Servelets
c) CORBA
d) EJBs
a is eliminated as rmi cannot pass thru firewall. d is also eliminated as ejb servers run on their specific port which will not be allowed to pass thru due to firewall. I am not sure of c but I think even c is wrong. As servlets use http and http is usually allowed to pass thru firewalls, b seems the ideal choice.
8.A reference to an EJB can be stored by a client for later use by:
a) serializing the EJBObject to disk
b) Adding the object to the server's pooled objects
c) implementing a find<method> for the bean
d) storing the Handle of the EJB for the bean object
I think it should be d
9. What manner a developer define asynchronous method in CORBA
a) outKeyword in IDL
b) asynchronousKeyword in IDL
c) nowaitKeyword in IDL
d) onewayKeyword in IDL
e) any one method of a void return types,does only
input parameters and throws no exceptions.
not sure
10.A developer successfully creating and tests a stateful bean following deployment, intermittent "NullpointerException" begin to occur, particularly when the server is hardly loaded. What most likely to related problem.
a) setSessionContext
b) ejbCreate
c) ejbPassivate
d) beforeCompletion
e) ejbLoad
the answer could be a as the SessionContext object could be null.
11. 2 programs are there- and running concurrently.
Both will select multiple rows from the table. No
table updates can occur while the 2 programs are
running. Which isolation can provide BEST performance
while priventing conflicts?
a) TRANSACTION-NO
b) TRANSACTION-READ-UNCOMMITTED
c) TRANSACTION-READ-COMMITTED
d) TRANSACTION-REPEATABLE-READ
e) TRANSACTION-SERIALIZABLE
e would have been the best isolation level but it not the BEST performant isolation level.
 
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1)
 
Vivek Viswanathan
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1)
'c' and 'd' should be correct
I have select 'd' since although 'd' is a native protocol, the driver is developed using pure java, with out using native code, only the protocol is native to that particualt Database system.
2) a,b and d are correct.
3) d is correct.
4) not sure
5) c is correct
6) ???
7) b is correct ( same reason as Madhu Juneja)
8) d is correct
9) dunno
10) dunno
11) c is correct.
Thanx for all the questions
vivek
 
Madhu Juneja
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The questions are good. What is the source of the questions ? Is it from the IBM site ?
 
Vishakha Ahuja
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanx for the answers.
Even I do not know the source of the Q's ? I got someone's email with a bunch of Q's, thats it. I don't even know the sender. How strange !!!
 
We find this kind of rampant individuality very disturbing. But not this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!