Starting Out with Java Study Set 1

Computing

Quiz 12 :

Java-Fx: Gui Programming and Basic Controls

Quiz 12 :

Java-Fx: Gui Programming and Basic Controls

Question Type
search
arrow
An event handler class will not be executed unless it has been registered with the correct control.
Free
True False
Answer:

Answer:

True

Tags
Choose question tag
close menu
arrow
To add padding to an HBox you can call the __________ method.
Free
Multiple Choice
Answer:

Answer:

C

Tags
Choose question tag
close menu
arrow
A(n) __________ is an action that takes place in an application, such as the clicking of a button.
Free
Multiple Choice
Answer:

Answer:

D

Tags
Choose question tag
close menu
arrow
Programs that operate in a GUI environment must be __________.
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
Layout containers provide methods for fine-tuning the way controls are arranged.
True False
Answer:
Tags
Choose question tag
close menu
arrow
To display an image in a JavaFX application, you use either the Image or ImageView class.
True False
Answer:
Tags
Choose question tag
close menu
arrow
One important difference between the command line interface and a GUI interface is that __________.
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
When programming in JavaFX, you should think of the GUI objects as nodes in a tree-like hierarchical structure known as a scene graph.
True False
Answer:
Tags
Choose question tag
close menu
arrow
A GUI program automatically stops executing when the end of the main method is reached.
True False
Answer:
Tags
Choose question tag
close menu
arrow
When a splash screen is displayed, the application does not load and execute until the user clicks the splash screen image with the mouse.
True False
Answer:
Tags
Choose question tag
close menu
arrow
For this question, assume myView references an ImageView object. In order to preserve the image's aspect ratio (so it does not appear stretched or distorted), you should use which of the following?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
The BorderPane container always displays its content in five regions which are top, bottom, left, right, and center and each region must be used.
True False
Answer:
Tags
Choose question tag
close menu
arrow
Which of the following is not a way a user can interact with a computer?
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
The HBox object's setPadding method takes a(n) __________as its argument.
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
The __________ layout container arranges its contents with columns and rows.
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
To display an image in a JavaFX application you must __________.
Multiple Choice
Answer:
Tags
Choose question tag
close menu
arrow
To preserve an image's aspect ratio you can use the ImageView class's PreserveAspectRatio method.
True False
Answer:
Tags
Choose question tag
close menu
arrow
The command line interface is an event-driven interface.
True False
Answer:
Tags
Choose question tag
close menu
arrow
The Pos type must be imported from the javafx.geometry package.
True False
Answer:
Tags
Choose question tag
close menu
arrow
An event object is created when an event takes place.
True False
Answer:
Tags
Choose question tag
close menu
Showing 1 - 20 of 42