Sams Teach Yourself Java 2 in 24 Hours

Sams Teach Yourself Java 2 in 24 Hours

By Rogers Cadenhead

Quiz

To see if this hour has been a resounding success, test your knowledge of Java's sound capabilities with the following questions.

Questions

  1. Which of the following is not an audio format supported by Java?
    1. WAV
    2. AU
    3. DISCO
  2. What's the benefit of using the getCodeBase() method to specify the location of a sound file in your applets?
    1. The sound file loads more quickly.
    2. You can move the applet to a new location on the World Wide Web without changing the program in any way.
    3. All your friends in the Java community already are doing it, so you won't be ostracized and ridiculed for being different.
  3. What does URL stand for?
    1. Universal Resource Locator
    2. Uniform Resource Locator
    3. Unexpected Radio Link

Answers

  1. c. DISCO is not a valid audio format in Java. Some people might argue that it isn't a valid audio format in life, either, but you won't hear that from this author. I'm still saving clothes for the day when gold chains, Gloria Gaynor, and wide collars open to the navel make their triumphant comeback.
  2. b.
  3. b. Actually, a. isn't too off the mark, because URLs are sometimes referred to as Universal Resource Locators.

Share ThisShare This

Informit Network