Ch.26 Test Questions & Answers Javafx - Java Foundations 4th Edition | Test Bank with Answer Key by John Lewis by John Lewis, Peter DePasquale, Joe Chase. DOCX document preview.
Chapter 26: JavaFX
Multiple Choice Questions:
1) JavaFX supports the use of____________ in an application, which the Swing API does not.
a) GUI
b) multimedia
c) sound
d) text
e) layout managers
2) Every JavaFX program is defined in a class that inherits from / extends the __________ class.
a) Application
b) JavaFX
c) Interface
d) Exception
e) Swing
3) When designing a JavaFX application, the main method calls the ______ method.
a) makeItSo
b) launch
c) run
d) JavaFX.go
e) None of these is correct
4) A GUI for a JavaFX application is built in the ______ method, which is inherited from Application and can be overridden.
a) assemble
b) build
c) implement
d) start
e) None of these is correct
5) The analogy that best describes the process of assembling a JavaFX application and running it is
a) loading goods on a ship and then the ship departs
b) a hummingbird alighting to drink nectar
c) prepare a scene, put the scene on a stage, then open the curtains
d) package an item, then ship it to its recipient
e) None of these is an appropriate analogy
6) One of the benefits of using JavaFX Scene Builder to develop a GUI application over developing the GUI by hand is
a) there is a richer set of GUI components available
b) the application develops itself
c) developing a GUI application by hand is no longer supported
d) no Java code has to be written
e) GUI code does not have to be written
7) StackPane, AnchorPane, VBox, and GridPane are all
a) element collaborators
b) layout containers
c) error trackers
d) component trackers
e) neither a, b nor c
1) The first approach to supporting GUI development in Java was with the Abstract Windowing Toolkit
2) There is little difference between the types of GUI applications that can be developed using the Swing API and those using JavaFX.
3) A main method may not be needed when developing a GUI application using JavaFX.
4) Layout containers are used to determine the order of the execution of the components in a GUI.
5) A GUI builder like JavaFX Scene Builder can be launched from within an integrated development environment like NetBeans or Eclipse
6) The setTitle method of the Stage class can be used to put a title on a component in a GUI window.
7) The show method of the Stage class is used to make the Scene object visible.
1) Describe the sequence over time of the libraries or APIs that support GUI development in Java.
2) Explain the sequence of method calls that are needed to run a JavaFX GUI application.
3) How can a GUI builder like JavaFX Scene Builder aid in the development of a GUI application?
4) How is GUI development in Java enhanced by the use of JavaFX over using the Swing API?
5) What is the use of a Controller class as generated from JavaFX GUI Builder?
Document Information
Connected Book
Java Foundations 4th Edition | Test Bank with Answer Key by John Lewis
By John Lewis, Peter DePasquale, Joe Chase