Exam 17: Applets, Images, and Sound
Exam 1: Creating Java Programs68 Questions
Exam 2: Using Data74 Questions
Exam 3: Using Methods, Classes, and Objects68 Questions
Exam 4: More Object Concepts67 Questions
Exam 5: Making Decisions70 Questions
Exam 6: Looping72 Questions
Exam 7: Characters, Strings, and the Stringbuilder73 Questions
Exam 8: Arrays74 Questions
Exam 9: Advanced Array Concepts74 Questions
Exam 10: Introduction to Inheritance70 Questions
Exam 11: Advanced Inheritance Concepts70 Questions
Exam 12: Exception Handling65 Questions
Exam 13: File Input and Output74 Questions
Exam 14: Introduction to Swing Components74 Questions
Exam 15: Advanced Gui Topics69 Questions
Exam 16: Graphics74 Questions
Exam 17: Applets, Images, and Sound72 Questions
Select questions type
Match each term with the correct statement below.
-A simple language used to create Web pages for the Internet
Free
(Multiple Choice)
4.9/5
(45)
Correct Answer:
D
There are four methods inherited from JApplet that make up the life cycle of an applet.
Free
(True/False)
4.8/5
(35)
Correct Answer:
False
Match each term with the correct statement below.
-A little application
Free
(Multiple Choice)
4.9/5
(41)
Correct Answer:
H
Use the ____ applet method to perform initialization tasks, such as setting variables to initial values or placing applet components on the screen.
(Multiple Choice)
4.9/5
(42)
A(n) ___________________ is a program that is called within another application-often a Web browser.
(Short Answer)
4.7/5
(30)
Explain lossless data compression and the image formats with which it is used.
(Essay)
4.7/5
(40)
Write the statement to retrieve and play the myTune.au sound file that will be stored in the same place as the applet.
(Essay)
4.7/5
(41)
It is common practice for programmers to write their own stop() and destroy() methods.
(True/False)
4.9/5
(33)
The ____ API allows you to add audio and video media to an application.
(Multiple Choice)
5.0/5
(34)
Match each term with the correct statement below.
-Describes the use of sound, images, graphics, and video in computer programs
(Multiple Choice)
4.8/5
(34)
arrowPicture.paintIcon(this, g, 150, 0);
The statement above is used to display the arrowPicture ImageIcon using the paintIcon() method. Describe the four arguments that are used in this method.
(Essay)
4.8/5
(35)
If the JApplet class was not already written, you would have to write more than ____ methods to give your JApplet all the capabilities of the built-in JApplet class.
(Multiple Choice)
4.9/5
(31)
<html>
____________________
</object>
</html>
Using the HTML code above, write the statement to run a JApplet named JHello. The applet will be 450 pixels wide by 150 pixels tall.
(Essay)
4.9/5
(40)
The init() method is the first method called in any applet. Write the code for the init() method header and explain the purpose of the init() method.
(Essay)
4.9/5
(33)
import javax.swing.*;
import java.awt.*;
public class JHello extends JApplet
{
JLabel greeting = new JLabel("Hello. Who are you?");
public void init()
{
add(greeting);
}
}
The above code displays an applet with a JLabel added without a specified BorderLayout region. Describe how the JLabel will occupy the JApplet surface.
(Essay)
4.8/5
(37)
Showing 1 - 20 of 72
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)