Exam 17: Applets, Images, and Sound

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

By calling ____ in an applet, you get a URL object that represents the folder in which the applet's class file is stored.

(Multiple Choice)
4.8/5
(39)

Which of the following cannot be performed with JApplets?

(Multiple Choice)
4.8/5
(43)

What are the three object tag attributes commonly used to run an applet?

(Essay)
4.9/5
(39)

Usually, you place three attributes within the <object> tag: code, width, and ____.

(Multiple Choice)
4.9/5
(30)

The extension of an HTML document should be .html or ____.

(Multiple Choice)
4.9/5
(30)

A(n) ___________________ is a likeness of a person or thing.

(Short Answer)
4.9/5
(33)

Match each term with the correct statement below. -Provides a convenient environment in which to test your applets

(Multiple Choice)
5.0/5
(34)

____ contains many commands that allow you to format text on a Web page, import graphic images, and link your page to other Web pages.

(Multiple Choice)
4.8/5
(45)

<object code = "AClass.class" width = 300 height = 200> </object> Using the above statement, identify the three object tag attributes and their corresponding arguments.

(Essay)
4.7/5
(37)

<html> ____________________________ </object> </html> In the blank line provided, write the code to run a JApplet named JGreeting that will be 370 pixels wide by 110 pixels tall.

(Essay)
4.8/5
(31)

import java.awt.*; import java.applet.*; import javax.swing.*; public class JSound extends JApplet { AudioClip sound; public void init() { sound = getAudioClip(getCodeBase(),"mysteryTune.au"); } public void start() { ___________________________________ } public void stop() { ___________________________________ } public void paint(Graphics g) { super.paint(g); Graphics2D g2D = (Graphics2D)g; g2D.drawString("Listen to the mystery tune ", 10, 10); } } In the first shaded line provided, write the loop() method to play the mysteryTune.au sound continually. On the second shaded line, write the stop() method to halt the mysteryTune.au sound file.

(Short Answer)
4.7/5
(40)

Because applets execute in a browser, the JApplet class contains methods that are automatically called by the browser.

(True/False)
4.9/5
(43)
Showing 61 - 72 of 72
close modal

Filters

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