Exam 14: Applets and More

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

Applets are important because the can be used to

Free
(Multiple Choice)
4.8/5
(43)
Correct Answer:
Verified

A

In the following code,what does getDocumentBase()return? play(getDocumentBase(),"mysound.wav");

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

B

Which tag will produce largest text?

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

D

An applet using a Swing GUI extends which class?

(Multiple Choice)
4.8/5
(33)

If a frame component is 300 pixels wide and 200 pixels high,the upper,right-hand corner has (X,Y)coordinates of

(Multiple Choice)
4.8/5
(30)

Which of the following is not a valid AWT class?

(Multiple Choice)
4.9/5
(40)

Given the following code,how many times per second will the TimerListener event be generated? Timer timer = new Timer(1000,new TimerListener());

(Multiple Choice)
4.8/5
(41)

The delay parameter in the Timer constructor is the amount of time between action events,measured in milliseconds.

(True/False)
4.9/5
(36)

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.

(True/False)
4.9/5
(40)

When you extend an interface,you must implement all the methods defined in the interface.If you are interested in only one or two mouse events,you can extend the _______ class which implements the MouseListener interface,but does not require you to write all the functions in the interface.

(Multiple Choice)
4.8/5
(36)

Which of the following will load the applet,TestApplet?

(Multiple Choice)
4.8/5
(39)

Given the following code,how many times per second will the TimerListener event be generated? Timer timer = new Timer(500,new TimerListener());

(Multiple Choice)
4.9/5
(42)

One way of viewing the results of the applet which is invoked in the HTML document TestApplet.html,is to enter the following at the command prompt.

(Multiple Choice)
4.8/5
(31)

For all Swing components except JApplet and JFrame,you should override the paintComponent method instead of the paint method.

(True/False)
4.9/5
(44)

Which of the following can a mouse listener respond to?

(Multiple Choice)
4.8/5
(29)

The browser creates an instance of the applet class automatically.

(True/False)
4.9/5
(40)

Everything that appears between these tags in an HTML document is the content of the Web page.

(Multiple Choice)
4.9/5
(39)

If you want to make sure that an applet is compatible with all Java-enabled browsers,use Swing components instead of AWT.

(True/False)
4.9/5
(39)

The delay parameter in the Timer constructor is the amount of time between action events,measured in microseconds.

(True/False)
4.8/5
(32)

In an applet,events are handled

(Multiple Choice)
4.9/5
(31)
Showing 1 - 20 of 39
close modal

Filters

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