Filters
Question type

All graphics coordinates are in units of ___________________.

Correct Answer

verifed

verified

A button is a type of component.

A) True
B) False

Correct Answer

verifed

verified

The ____ class is an abstract class that provides the interface between the Java API and the physical device on which the image is created.


A) Graphics
B) Applet
C) Frame
D) Dialog

E) A) and D)
F) All of the above

Correct Answer

verifed

verified

The Java API java.text contains the class ____, which can be used to format numbers either as pure numbers or as currency.


A) interface
B) NumberFormat
C) toolbar
D) layoutManager

E) A) and D)
F) B) and C)

Correct Answer

verifed

verified

A(n) ____ is a general-purpose intermediate component that is used to organize the other components.


A) Applet
B) Frame
C) Window
D) JPanel

E) None of the above
F) All of the above

Correct Answer

verifed

verified

A primary purpose of the ____ API is to enable a programmer to develop a GUI for a Java application.


A) Window
B) Swing
C) actionListener
D) JPanel

E) C) and D)
F) None of the above

Correct Answer

verifed

verified

The ____________________ is the base class for all other Swing components, except the top-level containers JFrame, JDialog, JAPPlet, and JWindow.

Correct Answer

verifed

verified

____________________ buffering allows for flicker-free updates at the cost of additional memory.

Correct Answer

verifed

verified

A toolbar contains icons that can be selected by a mouse click.

A) True
B) False

Correct Answer

verifed

verified

____ are triggered by making a selection from a list of items.


A) MouseEvents
B) JPanel events
C) ItemEvents
D) Applets

E) C) and D)
F) None of the above

Correct Answer

verifed

verified

Class ActionEvent is a subclass of the abstract class ____________________.

Correct Answer

verifed

verified

A(n) ____________________ is a method that is to be called when an action event occurs.

Correct Answer

verifed

verified

The interface EventListener has no methods. Such interfaces are known as ____.


A) components
B) layouts
C) pixels
D) markers

E) A) and B)
F) A) and D)

Correct Answer

verifed

verified

D

The layout manager can be specified as an argument of the JPanel constructor, or it can be set in any Container by calling the method flowLayoutManager.

A) True
B) False

Correct Answer

verifed

verified

False

____ Layout places components in either a horizontal or vertical arrangement.

Correct Answer

verifed

verified

All user interfaces are displayed within a(n) ____.


A) pixel
B) toolbar
C) window
D) actionListener

E) B) and D)
F) A) and C)

Correct Answer

verifed

verified

A(n) ____ combines a button or editable field and a drop-down list.


A) event
B) actionListener
C) Frame
D) combo box

E) All of the above
F) A) and B)

Correct Answer

verifed

verified

D

JPanel cannot be used as a painting surface.

A) True
B) False

Correct Answer

verifed

verified

To facilitate mutual exclusion, radio buttons are placed into a(n) ____________________.

Correct Answer

verifed

verified

Objects of class ____ must be placed in a containment hierarchy that is rooted in one of the top-level containers.


A) Swing
B) Frame
C) JComponent
D) Applet

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Showing 1 - 20 of 25

Related Exams

Show Answer