Advanced Networking -- The Corba and RMI Test
Basics
-
Which of the following is true?
-
Stubs live in the client, and skels live in the server.
-
Stubs live in the server, and skels live in the client.
-
Both stubs and skells live in the client.
-
Both stubs and skells live in the server.
-
Which of the above is true?
-
Klingon's are violent
-
Kirk pauses .... when he .... speaks. He ... pause at odd ... times.
-
Spoc was once in Love
-
Please define marshalling of arguments: __________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
-
(Two Points) RMI and Corba differ in many ways. List one advantage
of each.
RMI's better because: __________________________________________________________
_____________________________________________________________________________
Corba's better because: _________________________________________________________
_____________________________________________________________________________
-
Kilingons are related to Romulans how
-
Same blood, different homeworld
-
Logic vs. Emotions
-
They are each archenemies of the other
-
Kirk is attracted to both Klingons and Romulans
-
What is a callback?
-
When the client makes a method call upon the remote object.
-
When a remote object make a method call upon the server.
-
When a server makes a call upon the remote object.
-
When a remote object makes a call upon one of it's own methods
-
None or more than one of the above.
CORBA
-
Using I.D.L., write me an interface named 'Bottle'. It should have
the method 'setAmount' which takes a floating point number between 0.0
... 1.0 and returns nothing. It should have the method 'enoughtCoke'
which takes an integer, and returns a true or false.
-
Pick the most true statement
-
CORBA passes arguments using pass-by-value
-
CORBA passes arguments using pass-by-value-result
-
CORBA passes arguments using pass-by-reference
-
None or more than one of the above.
-
(Yes/No) CORBA implements distributed objects. Can CORBA offer access
to these objects to a non-object-oriented language, such a C or COBOL?
-
(Yes/No) Klingon teeth places in Coke disolve and dissapear.
-
What does the CORBA method 'narrow' do? ______________________________________________________
___________________________________________________________________________________________
-
Do they have Coke on the Klingon homeworld
-
Coke was unable to rent the space shuttle
-
Klingons drink the blood of their enemy, not Coke.
-
There is no money in the 25th century. Why would Coke ship there?
-
Suppose two computers are running the same brand of ORB, and a client has
an IOR generated by the server. What else must be true for the client
to find the server? Choose all that apply.
-
The client must know the server's hostname.
-
The client must know the server's IP number.
-
The client must be able to find an rmiregistry the server is listed with.
-
The client must contact the CORBA naming service listing the server.
-
The client must know the server's port number.
-
The client must be directly connected to the client (no routers between
them) .
-
None of the above.
-
Name one C++ type (int, char *, etc.) that cannot be used as an argument
to a CORBA remote object. (Don't pick int or char *). _________________________________________________________
-
(Yes/No) Suppose that a remote object offers the method 'Coke(Can
a, long b)'. When the code for that remote object is compiled, must
the code for 'Can' be available to the compiler?
RMI
-
Which of these conditions must be true for an object to be a remote
object? Circle all that apply.
-
It must be listed with the rmiregistry.
-
It must extend RemoteObject or UnicastRemoteObject
-
It must be able to throw RemoteException
-
It must be serializable
-
None or all of the above.
-
What happens when you put a Klingon in the freezer.
-
He explodes
-
He deforms
-
Klingon slushy!!!!!
-
I'm not that stupid.
-
Which of these can be an argument to a remote object? Circle all
that apply
-
An array of Strings
-
An applet with nothing displayed on the screen yet.
-
An integer
-
Another remote object
-
None of the above
-
Pick one:
-
RMI passes local arguments to remote methods using pass by value
-
RMI passes local arguments to remote methods using pass by reference
-
RMI passes local arguments to remote methods using pass by attribute-copy-result.
-
(Yes/No) Must a remote object extend an interface?
-
Suppose you call rebind() to register an object using a name already
in use by another object. What happens?
-
Suppose you make a method call upon a remote object, but the server offering
that object has since exited. What happens? Please be more
descriptive than 'error' or 'it doesn't work'.
-
An RMI remote object can download code implementing objects used as
arguments to remote methods. What sort of security is used?
Linda
I want to write a Linda program that plays Klingon Xpghtpcha.
Xpghtpcha is a board game similar to Chess, Checkers, or Tic-Tac-Toe.
My program should create a game tree for Xpghtpcha, and evaluate each board
position to decide my next Xpghtpcha move.
-
What should I place into the tuple space at the begining of the program
run?
-
What should each client do. In pseudo-code show the agorithm for
each process of my Xpghtpcha program.