wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Java Chapter 12 Review Questions

Total questions: 21

Worksheet time: 11mins

Name
Class
Date
1.

The primary purpose of this type of control is to display text

a)

Button

b)

Label

c)

Message

d)

Text

2.

This type of control appears as a rectangular region that can accept keyboard input from the user

a)

Button

b)

Label

c)

TextField

d)

InputField

3.

Typically, when the user clicks this type of control, an action takes place

a)

Button

b)

Label

c)

TextField

d)

Switch

4.

In memory, the GUI objects in a scene are organized as nodes in this type of structure

a)

scene array

b)

scene graph

c)

scene tree

d)

scene stack

5.

There can be only one of these in a scene. It is the parent of all the other nodes

a)

leaf node

b)

master node

c)

root node

d)

branch node

6.

This type of node can have other nodes as children

a)

leaf node

b)

master node

c)

anchor node

d)

branch node

7.

This type of node cannot have other nodes as children

a)

leaf node

b)

root node

c)

container node

d)

branch node

8.

All JavaFX applications must extend the _________ class

a)

JavaFX

b)

Application

c)

GUI

d)

Window

9.

This container arranges its contents in a single, vertical row

a)

VerticalBox

b)

VBox

c)

GridPane

d)

HBox

10.

You use this class to load an image file into memory

a)

ImageView

b)

ImageLoader

c)

Image

d)

Img

11.

You use this class to actually display an image

a)

ImageView

b)

ImageLoader

c)

Image

d)

Img

12.

The EventHandler interface specifies a method named:

a)

register

b)

onClick

c)

fire

d)

handle

13.

Which class do you use to create an alert dialog?

a)

AlertDialog

b)

PopUpDialog

c)

AlertMessage

d)

Alert

14.

Which is not a valid alert dialog type?

a)

AlertType.CONFIRMATION

b)

AlertType.INFORMATION

c)

AlertType.MESSAGE

d)

AlertType.WARNING

15.

The BorderPane layout container has five regions known as which of the following?

a)

north, south, east, west, center

b)

top, bottom, left, right, center

c)

up, down, left, right, middle

d)

I, II, III, IV, and V

16.

What type of object does a layout container's getChildren() method return?

a)

ExpandableList

b)

MoveableList

c)

ArrayList

d)

ObservableList

17.

The Stage class is in the javafx.scene package

a)

True

b)

False

18.

The HBox container makes all of the nodes it contains of the same height.

a)

True

b)

False

19.

You can nest a layout container inside of another layout container

a)

True

b)

False

20.

Only one object at a time may be placed into a BorderPane region

a)

True

b)

False

21.

The Alert class's showAndWait method displays a modal dialog

a)

True

b)

False