Remote Method Invocation MCQs

Remote Method Invocation MCQs

Answer these 20 Remote Method Invocation MCQs and assess your grip on the subject of Remote Method Invocation. Scroll below and get started!

1: RMI uses which protocol on top of TCP/IP (an analogy is HTTP over TCP/IP)?

A.   Internet Inter-ORB Protocol (IIOP)

B.   Jinni Extensible Remote Invocation (JERI)

C.   Java Remote Method Protocol (JRMP)

D.   All

2: In a RMI Client Program, what are the exceptions which might have to handled?

A.   NotBoundException

B.   All

C.   RemoteException

D.   MalFormedURLException

3: RMI uses which objects for the communication with the remote object?

A.   Stub

B.   None

C.   Skeleton

D.   Stub And Skeleton

4: Which package is used for Remote Method Invocation (RMI)?

A.   Java.rmi

B.   Java.applet

C.   Java.lang.reflect

D.   Java.lang.rmi

5: RMI Architecture consists of how many layers?

A.   1

B.   4

C.   2

D.   52

6: Which is built on the top of socket programming?

A.   RMI

B.   EJB And RMI

C.   None

D.   EJB

7: An RMI Server is responsible for:

A.   Creating an instance of the remote object

B.   All

C.   Binding the instance of the remote object to the RMI registry

D.   Exporting the remote object

8: Which method of the Naming class (found in java.rmi) is used to update the RMI registry on the server machine?

A.   Lookup()

B.   Lookup() And rebind ()

C.   None

D.   Rebind ()

9: In RMI Architecture which layer Intercepts method calls made by the client/redirects these calls to a remote RMI service?

A.   Application layer

B.   Transport layer

C.   Stub & Skeleton Layer

D.   Remote Reference Layer

10: Java supports RMI, RMI Stands for?

A.   Random Method Invocation

B.   Random Method Invocation

C.   Remote Memory Interface

D.   Remote Method Invocation

11: RMI uses a layered architecture; each of the layers could be enhanced or replaced without affecting the rest of the system?

A.   True

B.   False

12: RMI and EJB, provides services to access an object running in another JVM (known as remote object)?

A.   False

B.   True

13: In RMI which layer defines and supports the invocation semantics of the RMI connection, this layer maintains the session during the method call?

A.   The Application Layer

B.   The Remote Reference Layer

C.   The Stub & Skeleton Layer

D.   The Transport Layer

14: In RMI the objects are passed by Value or Reference?

A.   Objects are passed by Reference

B.   Objects are passed by value and reference

C.   None

D.   Objects are passed by value

15: In Naming class which method specifies name to a remote object?

A.   Bind(string name)

B.   Rebind(string name)

16: In RMI Distributed object applications need to do?

A.   Locate remote objects

B.   All

C.   Load class definitions for objects that are passed around

D.   Communicate with remote objects

17: Which is an object, acts as a gateway for the client side, all the outgoing requests are routed through it, and it resides at the client side and represents the remote object?

A.   Skeleton

B.   None

C.   Stub And Skeleton

D.   Stub

18: When the skeleton receives the incoming request, it does the following tasks?

A.   It reads the parameter for the remote method

B.   It waits for the result

C.   It writes and transmits (marshals) the result to the caller

D.   It reads the parameter for the remote method And It writes and transmits (marshals) the result to the caller

19: RMI has which of these protocols implementations?

A.   All

B.   Jinni Extensible Remote Invocation (JERI)

C.   Internet Inter-ORB Protocol (IIOP)

D.   Java Remote Method Protocol (JRMP)

20: In RMI program the following two steps are used to, Either extend the UnicastRemoteObject class, the exportObject() method of the UnicastRemoteObject class,

A.   Compile the implementation class and create the stub and skeleton objects using the rmic tool

B.   Create the remote interface

C.   Create and start the remote application

D.   Provide the implementation of the remote interface