Java How to Program, 11/e Multiple Choice Test Bank Page 4 of
9
13.3.5 Painter Subclass of Application
(No questions.)
13.3.5 PainterController Class
13.3.5 Q1: Which of the following statements is false?
a. ToggleGroup method getSelectedToggle returns the Toggle
that’s currently selected. Class RadioButton is one of several controls
(others are RadioButtonMenuItem and ToggleButton) that imple-
ments interface Toggle.
b. Each mouse event handler you define must provide one parameter
of type MouseEvent. When the event occurs, this parameter contains
information about the mouse event, such as its location, whether any
mouse buttons were pressed, which node the user interacted with and
more.
c. Each layout pane has a getChildren method that returns an Ob-
servableList<Node> collection containing the layout’s child nodes.
d. All JavaFX shapes inherit indirectly from class Shape in the ja-
vafx.scene package.
13.4 Color Chooser App: Property Bindings and Property Listeners
13.4.1 Technologies Overview
13.4.1 Q1: Which of the following statements is false?
a. In the RGBA color system every color is represented by its red,
green and blue color values, each ranging from 0 to 255, where 0 de-
notes no color and 255 full color.
b. The alpha value (A of RGBA)—which ranges from 0.0 to
1.0—represents a color’s opacity, with 0.0 being completely trans-
parent and 1.0 completely opaque.
c. JavaFX makes extensive use of properties. A property is defined by
creating set and get methods with specific naming conventions.
public void setHour(int hour)
public int getHour()