Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Starting Out with Java
Quiz 14: Applets and More
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 41
True/False
For all Swing components EXCEPT JApplet and JFrame, you should override the paintComponent method instead of the paint method.
Question 42
True/False
Whenever you need a component of any type to be painted, call the paint method.
Question 43
True/False
Some browsers do not directly support the Swing classes of applets.
Question 44
Multiple Choice
Given the following code, how many times per second will the TimerListener event be generated? Timer timer = new Timer(500, new TimerListener() ) ;
Question 45
True/False
The browser creates an instance of the applet class automatically.
Question 46
True/False
The delay parameter in the Timer constructor is the amount of time between action events, measured in microseconds.
Question 47
True/False
An applet does not have to be on a Web server in order to be executed.
Question 48
Multiple Choice
In the following code, what does getDocumentBase() return? Play(getDocumentBase() , "mysound.wav") ;
Question 49
True/False
HTML describes the content and layout of a Web page, and creates links to other files and Web pages, but does not have sophisticated abilities such as performing math calculations and interacting with the user.
Question 50
True/False
The following getAudioClip() method returns an object that will load the sound file and assign the location of that file to clip which can then be used to call methods that may play the sound file one or more times: Audioclip clip = getAudioClip(getDocumentBase(), "mysound.wav");
Question 51
True/False
The delay parameter in the Timer constructor is the amount of time between action events, measured in milliseconds.
Question 52
True/False
The play method will load and play a sound file once, then release it for garbage collection. The getAudioClip method will load the sound file and may assign the location of the sound file to a variable so it may be invoked many times.