Sun Java Solaris Communities My SDN Account Join SDN
 
Learning

Java Card Version 2.2 New Features Quiz

 

Test your knowledge of the new features in Java Card Version 2.2 technology. For more information on Java Card Version 2.2 technology, you can download the Platform Specifications.

Logical Channels

1. Logical channels allow multiple applications, one on each channel, to execute on Java Card platform simultaneously. What is the maximum number of logical channels that Java Card technology can support?

 A. 1
 B. 2
 C. 3
 D. 4

2. For an applet to be selectable on multiple channels simultaneously, it must implement which interface?

 A. java.applet.AppletContext
 B. javacard.framework.Multiselectable
 C. java.applet.Simultaneous
 D. wjavacard.applet.Multiselectable

3. Only specific APDU commands can contain encoded logical channel information.

 A. True
 B. False

4. For the applets you want to use simultaneously, one of the methods for which you must provide an implementation is the Multiselectable.select method. This method informs the applet that:

 A. It has been selected more than once or if another applet in the same package has been selected in another channel
 B. It has been selected more than once in the same channel
 C. It has been selected more than once in different channels
 D. It has been selected more than once or if another applet in the same package has been selected in the same channel

Object, Package, and Applet Deletion

5. The object deletion mechanism is an optional feature in Java Card Version 2.2 technology that reclaims memory that is used by unreachable objects. The object deletion mechanism is like garbage collection in standard Java programming.

 A. True
 B. False

6. A Java Card applet can request the object deletion mechanism with a call to which method?

 A. JCSystem.requestObjectDeletion
 B. javacard.framework.requestGarbageCollection
 C. Object.delete
 D. Object.requestObjectDeletion

7. Interdependent applets cannot be deleted from a Java Card Version 2.2 platform.

 A. True
 B. False

8. A package deletion request removes a package and all of its applet instances, provided all of the applet instances are not active.

 A. True
 B. False

Java Card Remote Method Invocation (JCRMI)

9. What advantages does the addition of RMI and the component framework support give to Java Card technology?

 A. Simplifies migration of programmers to Java Card technology
 B. Simplifies integration of devices that run Java applications with Java Card technology
 C. Simplifies adding security to Java Card applications
 D. All of the above

10. Is it required to generate stubs for the Java Card RMI client framework?

 A. Only if the remote object reference descriptor uses the format based on the name of the interface
 B. Only if the remote object reference descriptor uses the format based on the name of the class
 C. Always
 D. Never

11. What are the characteristics of a typical JCRMI interface?

 A. The interface extends java.rmi.Remote
 B. Methods of the interface are declared as throwing a RemoteException
 C. The interface defines values for constants that might be used in communication between client and server
 D. All of the above


Back To Top