Quiz 6 -- CS 290W -- Mar 4, 99

(1) What is the CODE attribute if the Java applet is called Locate.class and it is in the sub-directory called java?
(1) Locate.applet
(2) Locate
(3) java/Locate
(4) java/Locate.class
(2)

(2) What does
import java.applet.*;
mean?
(1) import all the classes in the java.applet package
(2) import the class named java.applet.*
(3) do NOT import any classes from the java.applet package
(4) import the class named java.applet
(1)

(3) Which of the following sets the background color of the entire applet to yellow?
(1) label4.setBackground (Color.yellow);
(2) setBackground (Color.yellow);
(3) setBackground ("yellow");
(4) setColor (yellow);
(2)