Home | Articles

Security Programming Quiz

By Monica Pawlan
December 1998
Answers

Swinging Duke This short quiz tests your knowledge of the JavaŽ 2 security features. If you do not know an answer, take your best guess.

1. What does the java.security.manager option do?

Option Description
 A. Starts an applet in a restricted environment.
 B. Starts a security tool in a restricted environment.
 C. Starts an application in a restricted environment.
 D. Signs an applet.

2. What is Key Tool?

Option Description
 A. Command-line script for managing key pairs.
 B. Graphical User Interface for managing key pairs.
 C. Command-line script for assigning permissions to programs.
 D. Graphical user interface for assigning permissions to programs.

3. What is Policy Tool?

Option Description
 A. Command-line script for managing key pairs.
 B. Graphical User Interface for managing key pairs.
 C. Command-line script for assigning permissions to programs.
 D. Graphical user interface for assigning permissions to programs.

4. What is a message digest?

Option Description
 A. A secret value for encrypting and decrypting messages.
 B. A unique and reliable hash that lets the receiver know the message
received is the message sent.
 C. A way to control who receives a message.
 D. A cryptographic service implementation from a specific vendor.

5. What do you use to encrypt a message?

Option Description
 A. A message digest with an encryption key.
 B. A digital signature with a message digest.
 C. A cipher with an encryption key.
 D. An encryption key with a digital signature.

6. What does a certificate do?

Option Description
 A. Guards against the possibility that an encryption key has been illicitly changed.
 B. Certifies the accuracy of a message digest.
 C. Authorizes the user of a digital signature.
 D. Certifies that a provider is in full compliance with all United States export regulations.

7. Why are the encryption and decryption APIs a standard extension to Java 2?

Option Description
 A. To separate encryption and decryption from key generation.
 B. To prevent illicit signatures.
 C. To keep software not exportable outside the United States and Canada separate
from software that is exportable.
 D. To confuse secret agents, traitors, and spies.

8. What is symmetric key encryption?

Option Description
 A. Encrypting a message on the sending and receiving sides.
 B. Decrypting a message on the sending and receiving sides.
 C. Using a public and private key pair.
 D. Using a single key to encrypt and decrypt a message.

9. What is a Key Agreement?

Option Description
 A. A way for several parties to agree on a shared
secret without exchanging any secret information.
 B. A way to encrypt a serialized object with a key.
 C. Using the same key to encrypt and decrypt a message.
 D. Another word for plain text.

10. What is asymmetric key encryption?

Option Description
 A. Encrypting a message on the sending and receiving sides.
 B. Decrypting a message on the sending and receiving sides.
 C. Using a public and private key pair.
 D. Using a single key to encrypt and decrypt a message.

© 1994-2005 Sun Microsystems, Inc.