1) In a RMI Client Program, what are the exceptions which might have to handled?
A) RemoteException
B) NotBoundException
C) MalFormedURLException
D) All mentioned above
2) Which is a one-way communication only between the client and the server and it is not a reliable and there is no confirmation regarding reaching the message to the destination?
A) TCP/IP
B) UDP
C) Both A & B
D) None of the above
3) RMI Architecture consists of how many layers?
A) 5
B) 3
C) 4
D) 2
4) An RMI Server is responsible for,
A) Creating an instance of the remote object
B) Exporting the remote object
C) Binding the instance of the remote object to the RMI registry
D) All mentioned above
5) In RMI Distributed object applications need to do?
A) Locate remote objects
B) Communicate with remote objects
C) Load class definitions for objects that are passed around
D) All mentioned above
6) In RMI applications which program obtains a remote reference to one or more remote objects on a server and then invokes methods on them?
A) Server
B) Client
C) Both A & B
D) None of the above
7) In RMI program the following example shows the,
import java.rmi.*;
public interface Adder extends Remote{
public int add(int x,int y)throws RemoteException;
}
A) Create and start the remote application
B) Create and start the client application
C) Create the remote interface
D) Provide the implementation of the remote interface
8) In RMI program the following two steps are used to,
Either extend the UnicastRemoteObject class,
the exportObject() method of the UnicastRemoteObject class,
A) Provide the Implementation of the remote interface
B) Create the remote interface
C) Create and start the remote application
D) Compile the implementation class and create the stub and skeleton objects using the rmic tool
9) Which package is used for Remote Method Invocation (RMI)?
A) java.lang.rmi
B) java.lang.reflect
C) java.applet
D) java.rmi
10) Java supports RMI, RMI Stands for?
A) Random Method Invocation
B) Remote Memory Interface
C) Remote Method Invocation
D) Random 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 is a server-side component; It is not required to be deployed on the server?
A) True
B) False
13) Which is built on the top of socket programming?
A) EJB
B) RMI
C) Both A & B
D) None of the above
14) RMI and EJB, provides services to access an object running in another JVM (known as remote object)?
A) True
B) False
A) RemoteException
B) NotBoundException
C) MalFormedURLException
D) All mentioned above
2) Which is a one-way communication only between the client and the server and it is not a reliable and there is no confirmation regarding reaching the message to the destination?
A) TCP/IP
B) UDP
C) Both A & B
D) None of the above
3) RMI Architecture consists of how many layers?
A) 5
B) 3
C) 4
D) 2
4) An RMI Server is responsible for,
A) Creating an instance of the remote object
B) Exporting the remote object
C) Binding the instance of the remote object to the RMI registry
D) All mentioned above
5) In RMI Distributed object applications need to do?
A) Locate remote objects
B) Communicate with remote objects
C) Load class definitions for objects that are passed around
D) All mentioned above
6) In RMI applications which program obtains a remote reference to one or more remote objects on a server and then invokes methods on them?
A) Server
B) Client
C) Both A & B
D) None of the above
7) In RMI program the following example shows the,
import java.rmi.*;
public interface Adder extends Remote{
public int add(int x,int y)throws RemoteException;
}
A) Create and start the remote application
B) Create and start the client application
C) Create the remote interface
D) Provide the implementation of the remote interface
8) In RMI program the following two steps are used to,
Either extend the UnicastRemoteObject class,
the exportObject() method of the UnicastRemoteObject class,
A) Provide the Implementation of the remote interface
B) Create the remote interface
C) Create and start the remote application
D) Compile the implementation class and create the stub and skeleton objects using the rmic tool
9) Which package is used for Remote Method Invocation (RMI)?
A) java.lang.rmi
B) java.lang.reflect
C) java.applet
D) java.rmi
10) Java supports RMI, RMI Stands for?
A) Random Method Invocation
B) Remote Memory Interface
C) Remote Method Invocation
D) Random 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 is a server-side component; It is not required to be deployed on the server?
A) True
B) False
13) Which is built on the top of socket programming?
A) EJB
B) RMI
C) Both A & B
D) None of the above
14) RMI and EJB, provides services to access an object running in another JVM (known as remote object)?
A) True
B) False