Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Answer questions 1-20 about creating GUI applications with JavaFX 1. A tree-like

ID: 3686426 • Letter: A

Question

Answer questions 1-20 about creating GUI applications with JavaFX

1. A tree-like data structure that contains the components of a JavaFX GUI is called a:

a. directory tree b. node tree c.node graph d. scene graph

2. A node in a scene graph that contains other nodes is called a:

a. root node b. branch node c. leaf node d. terminal node

3. A node in a scene graph that has no children is called a:

a. root node b. branch node c. leaf node d. terminal node

4. An object that can be used to ensure that at most one of a group of radio buttons can be selected is called a(n):

a. singular object b. toggle group c. toggle button d. exclusion enforcer

5. A language used to style web pages, which can also be used to style JavaFX components is called

a. Component styling system b. Cascading style sheets c. Common styling statements d. CDC

6. Spacing around the border of a component is called

a. padding b. border spacing c. margin d. insets

7. Spacing inside the border of a component that surrounds its content is called

a. padding b. border spacing   c. margin d. insets

8. The class that is the super class of containers that are able to arrange their children is called

a. Pane b. Parent c. Region d. AnchorPane

9. The class to use when you want to represent an image in JavaFX is

a. ImageView b. Image c. PictureBox d. None of the above

10. The class to use when you want to display an image in JavaFX is

a. ImageView b. Image c. PictureBox d. None of the above

11. The image class is able to load images from

a. online sources b. a file stored on your computer c. all of the above d. none of the above

12. If you use a lambda expression as an event handler, you can only access

a. integer variables b. static variables c. variables that are local d. variables that are effectively final

13. A point in time, a set of key values, and an event handler are often used to define

a. an animation b. a timeline c. a subclass of KeyValue that implements the time interface using an event handler d. a key frame

14. A JavaFX timeline is

a. a sequence of key frames b. an interface that operates in time c. an obkect that keeps track of time in milliseconds d. a set of key values

15. A container that lays out its children in a horizontal row can be defined using the class

a. VBox b. HBox c. HorizontalBox d. none of the above

16. Event handlers of type EventHandler<ActionEvent> can be used with objects of the class

a. Pane b. RadioButton c. Node d. None of the above

17. In a JavaFX application, the values needed to construct a scene are

a. a stage b. an instance of the Node class, with optional width and height values to define the dimensions of the scene c. an instance of the Parent class, with optional width and height values to define the dimensions of the scene d. a VBox object

18. In a JavaFX application

a. the developer must write code to create a stage b. the stage object is created while the program is being compiled c. the stage is created by the system without the developer writing code to create it d. none of the above

19. In a JavaFX application

a. you are allowed to make one pane the child of another pane b. you can use any object of the node class to contain other nodes c. you can add an Image object to the VBox pane d. none of the above

20. Something that occurs while your program is executing that requires a response from your program is called:

a, an exception b. an event c. an event listener d. an event handler

Explanation / Answer

19.) d. None of the above

20.) A. exception