Deck 4: RMI and JSP : Layers, Directives, and Functionality
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/26
Play
Full screen (f)
Deck 4: RMI and JSP : Layers, Directives, and Functionality
1
What temporarily redirects response to the browser?
A)<jsp:forward>
B)<%@directive%>
C)response.sendRedirect(URL)
D)response.setRedirect(URL)
A)<jsp:forward>
B)<%@directive%>
C)response.sendRedirect(URL)
D)response.setRedirect(URL)
response.sendRedirect(URL)
2
Which tag is used to set a value of a JavaBean?
A)<c:set>
B)<c:param>
C)<c:choose>
D)<c:forward>
A)<c:set>
B)<c:param>
C)<c:choose>
D)<c:forward>
<c:set>
3
Can <!-comment-> and <%-comment-%> be used alternatively in JSP?
A)True
B)False
C)none
D)all
A)True
B)False
C)none
D)all
False
4
Java code is embedded under which tag in JSP?
A)Declaration
B)Scriptlet
C)Expression
D)Comment
A)Declaration
B)Scriptlet
C)Expression
D)Comment
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
5
Which of the following is not a directive in JSP?
A)page directive
B)include directive
C)taglib directive
D)command directive
A)page directive
B)include directive
C)taglib directive
D)command directive
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
6
In RMI Architecture which layer Intercepts method calls made by the client/redirects these calls to a remote RMI service?
A)Stub & Skeleton Layer
B)Application Layer
C)Remote Reference Layer
D)Transport Layer
A)Stub & Skeleton Layer
B)Application Layer
C)Remote Reference Layer
D)Transport Layer
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
7
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)Stub
B)Skeleton
C)Both A & B
D)None of the above
A)Stub
B)Skeleton
C)Both A & B
D)None of the above
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
8
Java supports RMI, RMI Stands for?
A)Random Method Invocation
B)Remote Memory Interface
C)Remote Method Invocation
D)Random Method Invocation.
A)Random Method Invocation
B)Remote Memory Interface
C)Remote Method Invocation
D)Random Method Invocation.
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
9
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
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
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
10
Abbreviate the term DGC?
A)Digital Garbage Collection
B)Distributed Garbage Collection
C)Distributed Garbage Connection
D)None of the above
A)Digital Garbage Collection
B)Distributed Garbage Collection
C)Distributed Garbage Connection
D)None of the above
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
11
RMI and EJB, provides services to access an object running in another JVM (known as remote object).
A)True
B)False
C)none
D)all
A)True
B)False
C)none
D)all
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
12
In RMI, the objects are passed by _____.
A)Value
B)Reference
C)Value and Reference
D)None of the above
A)Value
B)Reference
C)Value and Reference
D)None of the above
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
13
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
C)none
D)all
A)True
B)False
C)none
D)all
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
14
What are the exceptions which have to be handled in a RMI client program?
A)RemoteException
B)NotBoundException
C)MalFormedURLException
D)All mentioned above
A)RemoteException
B)NotBoundException
C)MalFormedURLException
D)All mentioned above
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
15
RMI is a server-side component; It is not required to be deployed on the server.
A)True
B)False
C)none
D)all
A)True
B)False
C)none
D)all
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
16
Which package is used for Remote Method Invocation (RMI)?
A)java.lang.rmi
B)java.lang.reflect
C)java.applet
D)java.rmi
A)java.lang.rmi
B)java.lang.reflect
C)java.applet
D)java.rmi
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
17
Which program obtains a remote reference to one or more remote objects on a server and then invokes methods on them in an RMI application?
A)Server
B)Client
C)Both A & B
D)None of the above
A)Server
B)Client
C)Both A & B
D)None of the above
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
18
Which objects are used by RMI for communicating with the remote object?
A)Stub
B)Skeleton
C)Both A & B
D)None of the above
A)Stub
B)Skeleton
C)Both A & B
D)None of the above
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
19
RMI Architecture consists of how many layers?
A)5
B)3
C)4
D)2
A)5
B)3
C)4
D)2
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
20
Which method in naming class specifies a name to the remote object?
A)bind(string name)
B)rebind(string name)
C)Both A & B
D)None of the above
A)bind(string name)
B)rebind(string name)
C)Both A & B
D)None of the above
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
21
1099 is the default port used by RMI Registry.
A)True
B)False
C)none
D)all
A)True
B)False
C)none
D)all
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
22
RMI uses which protocol on top of TCP/IP (an analogy is HTTP over TCP/IP)?
A)Java Remote Method Protocol (JRMP)
B)Internet Inter-ORB Protocol (IIOP)
C)Jinni Extensible Remote Invocation (JERI)
D)All mentioned above
A)Java Remote Method Protocol (JRMP)
B)Internet Inter-ORB Protocol (IIOP)
C)Jinni Extensible Remote Invocation (JERI)
D)All mentioned above
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
23
Which method of the Naming class (found in java.rmi) is used to update the RMI registry on the server machine?
A)rebind ()
B)lookup()
C)Both A & B
D)None of the above
A)rebind ()
B)lookup()
C)Both A & B
D)None of the above
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
24
What is the built on top of the socket programming?
A)EJB
B)RMI
C)Both A & B
D)None of the above
A)EJB
B)RMI
C)Both A & B
D)None of the above
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
25
In RMI which layer defines and supports the invocation semantics of the RMI connection and this layer maintains the session during the method call?
A)The Stub & Skeleton Layer
B)The Application Layer
C)The Remote Reference Layer
D)The Transport Layer
A)The Stub & Skeleton Layer
B)The Application Layer
C)The Remote Reference Layer
D)The Transport Layer
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck
26
In RMI Distributed object applications need to
A)Locate remote objects
B)Communicate with remote objects
C)Load class definitions for objects that are passed around
D)All mentioned above
A)Locate remote objects
B)Communicate with remote objects
C)Load class definitions for objects that are passed around
D)All mentioned above
Unlock Deck
Unlock for access to all 26 flashcards in this deck.
Unlock Deck
k this deck