Exam 17: Applets, Images, and Sound

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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
(87)
Correct Answer:
Verified

D

There are four methods inherited from JApplet that make up the life cycle of an applet.

Free
(True/False)
4.8/5
(80)
Correct Answer:
Verified

False

Match each term with the correct statement below. -A little application

Free
(Multiple Choice)
4.9/5
(82)
Correct Answer:
Verified

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
(89)

A(n) ___________________ is a program that is called within another application-often a Web browser.

(Short Answer)
4.7/5
(77)

Explain lossless data compression and the image formats with which it is used.

(Essay)
4.7/5
(81)

Applets can delete, read, or create files on the user's system.

(True/False)
4.7/5
(54)

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
(79)

It is common practice for programmers to write their own stop() and destroy() methods.

(True/False)
4.9/5
(68)

The ____ API allows you to add audio and video media to an application.

(Multiple Choice)
5.0/5
(69)

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
(76)

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
(80)

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
(86)

<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
(88)

What package contains the JApplet class?

(Multiple Choice)
4.8/5
(71)

You save applets with a(n) ____ file extension.

(Multiple Choice)
4.8/5
(80)

The tag that begins every HTML document is ____.

(Multiple Choice)
4.7/5
(94)

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
(76)

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.9/5
(76)

What is the parent class of JApplet?

(Multiple Choice)
4.7/5
(84)
Showing 1 - 20 of 72
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)