GrandDaddyQuizSol

GrandDaddyQuizSol - CS 391 Autumn 2007 2008 Roll Number...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 391 Autumn 2007 – 2008 Umair Javed Page 1 of 10 Roll Number SOLUTION Name ________________________ CS 391 Advanced Programming in Java Autumn 2007 Grand Daddy Quiz 40 minutes - 60 marks October 31, 2007 [Closed Books/Closed Notes/Open Mind] Good Luck ! SCOREBOARD Section 1 (15) 2 (25) 3 (20) Total (60) Marks
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CS 391 Autumn 2007 – 2008 Umair Javed Page 2 of 10 Section I (15 Marks) 1. What interface must all interfaces for remote services extend? a) java.rmi.RemoteService b) java.rmi.Remotable c) java.rmi.server.Remote d) java.rmi.Remote 2. When defining a remote interface, what exception is typically thrown as part of each method signature? a) IOException b) RemoteException c) RemoteCollisionException d) RemoteControlException 3. From which of the following locations can an RMI server NOT load classes? a) The CLASSPATH of an RMI client b) The CLASSPATH of the RMI server c) From an HTTP or FTP server on the network at a location specified by the client d) From an HTTP or FTP server on the network at a location specified by the server 4. What is the name for the remote object proxy that is used by the client? a) Skeleton b) RemoteRef c) MarshaledObject d) Stub 5. Which of the following would not locate the remote "Calculator" service on machine www.jguru.com (with an IP address is 216.217.9.172), where the standard RMI registry was used? a) Naming.lookup("rmi://www.jguru.com/Calculator"); b) Naming.lookup("rmi://216.217.9.172/Calculator"); c) Naming.lookup("rmi://www.jguru.com:1199/Calculator") ; d) Naming.lookup("www.jguru.com:1099/Calculator");
Background image of page 2
CS 391 Autumn 2007 – 2008 Umair Javed Page 3 of 10 6. What will be the result of compiling following code public class MyClass { final int i ; public static void main(String[] arguments) { System.out.println(new MyClass().i); } } a) Will print 0 b) Will give compile error c) Will give runtime error d) Will not print anything at all and the program will exit gracefully 7. Why doesn't the Java Runtime Environment shutdown after showing a Swing JFrame component? a)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/09/2010 for the course CS CS300 taught by Professor Abh during the Spring '10 term at lln.

Page1 / 10

GrandDaddyQuizSol - CS 391 Autumn 2007 2008 Roll Number...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online