Question

Answer questions 1-20 about creating GUI applications with JavaFX 1. A tree-like data structure that contains...

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

1 0

> Thank you, that was really helpful. Just starting to learn this subject.

Barbarra BBonney Tue, Mar 23, 2021 8:47 AM

Add a comment Improve this question Transcribed image text
Answer #1
  1. D. Scene graph

  2. A. root node

  3. C. Leaf node

  4. A. Singular object

  5. B. Cascading style sheets

  6. D. Insets

  7. A. Padding

  8. C. Region

  9. B. Image

  10. A. ImageView

  11. B. A file stored on the computer

  12. C. Variables that are local

  13. D. Keyframe

  14. A. A sequence of keyframes

  15. B.HBox

  16. D. None of the above

19. D. None of the above

20. A. exception


answered by: bbox
Add a comment
Know the answer?
Add Answer to:
Answer questions 1-20 about creating GUI applications with JavaFX 1. A tree-like data structure that contains...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • JavaFX! Just need to fill several lanes of code please!!! CSE205 OOP and Data Structure Quiz #15 Last Name (print) First Name (print) Write a JavaFX GUI application program that simulates a timer. T...

    JavaFX! Just need to fill several lanes of code please!!! CSE205 OOP and Data Structure Quiz #15 Last Name (print) First Name (print) Write a JavaFX GUI application program that simulates a timer. The timer should show "count: the beginning and increase the number by 1 in every one second, and so on. o" at .3 A Timer - × A Timer Count: 0 Count: 1 (B) After 1 second, the GUI Window (A) Initial GUI Window According to the...

  • JAVAFX ONLY PROGRAM!!!!! SORTING WITH NESTED CLASSES AND LAMBDA EXPRESSIONS. DIRECTIONS ARE BELOW: DIRECTIONS: The main...

    JAVAFX ONLY PROGRAM!!!!! SORTING WITH NESTED CLASSES AND LAMBDA EXPRESSIONS. DIRECTIONS ARE BELOW: DIRECTIONS: The main point of the exercise is to demonstrate your ability to use various types of nested classes. Of course, sorting is important as well, but you don’t really need to do much more than create the class that does the comparison. In general, I like giving you some latitude in how you design and implement your projects. However, for this assignment, each piece is very...

  • JavaFX program - Add a second level to the game. //Main game object/class package main; import java.util.ArrayList; impo...

    JavaFX program - Add a second level to the game. //Main game object/class package main; import java.util.ArrayList; import javafx.animation.AnimationTimer; import javafx.beans.binding.Bindings; import javafx.beans.property.SimpleIntegerProperty; import javafx.beans.property.SimpleStringProperty; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.scene.control.Label; import javafx.scene.image.ImageView; import javafx.scene.layout.HBox; import javafx.scene.layout.Pane; import javafx.scene.paint.Color; import javafx.scene.shape.Rectangle; import javafx.stage.Stage; public class Game extends Pane implements Runnable {       // instance variables    private ArrayList<MOB> mobs;    private ArrayList<Rectangle> hitBoxes;    private ArrayList<Treasure> treasure;    private Player player;    private final ImageView background = new ImageView();    private Level level;    private SimpleIntegerProperty score;    private...

  • please answer correctly and follow the code structure given [JavaFX/ Exception handing and text I/O] 1....

    please answer correctly and follow the code structure given [JavaFX/ Exception handing and text I/O] 1. Write a program for the following. NOTE that some of these steps are not dependent on each other. Using methods is mandatory. Make sure to use methods where it makes sense. a. Ask the user for a series of integers entered from the keyboard. Use a sentinel value such as 999 to end the input process. If the entered values are not integers, throw...

  • Review Questions 1. Which of the following opens the employ.txt file and allows the computer to...

    Review Questions 1. Which of the following opens the employ.txt file and allows the computer to write new data to the end of the file's existing data? a. outFile = IO.File.AddText("employ.txt") b. outFile = IO.File. AppendText("employ.txt") c. outFile = 10.File. InsertText("employ.txt") d. outFile = IO.File.WriteText("employ.txt") If the file to be opened exists, which method erases the file's contents? a. Append Text c. Insert Text b. Create Text d. Open Text Which of the following reads a line of text from...

  • Java FX Application Purpose The purpose of this assignment is to get you familiar with the...

    Java FX Application Purpose The purpose of this assignment is to get you familiar with the basics of the JavaFX GUI interface components. This assignment will cover Labels, Fonts, Basic Images, and Layouts. You will use a StackPane and a BorderPane to construct the layout to the right. In addition you will use the Random class to randomly load an image when the application loads Introduction The application sets the root layout to a BorderPane. The BorderPane can be divided...

  • Multiple choice questions 1. A variable that is shared by all objects of a class is...

    Multiple choice questions 1. A variable that is shared by all objects of a class is called_________? A.Static variable B. Const variable C.Member variable D. None of the above 2. Each object of a class has its own copy of the class's: A. member functions B. static member variables C. instance member variables D. A & C E. A & B 3. In a vector, which of the following statements is true? (can have multiple answers) a) Indexing vector access...

  • Copyright laws were established A. to allow authors to distribute their work while maintaining certain ownership...

    Copyright laws were established A. to allow authors to distribute their work while maintaining certain ownership rights. B. to allow authors to maintain ownership of their ideas. C. to restrict access to publications to certain groups within society. D. to allow ideas to be traced back to their origins. Which of the following describes only the portion of a database available to a particular user? A. Database model B. Schema C. Subschema D. DBMS Which of the following relational operations...

  • JAVA 3 PLEASE ANSWER AS MANY QUESTIONS AS POSSIBLE! ONLY 2 QUESTIONS LEFT THIS MONTH!!! Question...

    JAVA 3 PLEASE ANSWER AS MANY QUESTIONS AS POSSIBLE! ONLY 2 QUESTIONS LEFT THIS MONTH!!! Question 12 pts Which is a valid constructor for Thread? Thread ( Runnable r, int priority ); Thread ( Runnable r, String name ); Thread ( int priority ); Thread ( Runnable r, ThreadGroup g ); Flag this Question Question 22 pts What method in the Thread class is responsible for pausing a thread for a specific amount of milliseconds? pause(). sleep(). hang(). kill(). Flag...

  • This task is a program framework that you should complete. The program should allow the user...

    This task is a program framework that you should complete. The program should allow the user to move a circular figure with the mouse over a drawing area. The current position of the figure is displayed continuously: Given is the main program: import javafx.scene.Scene; import javafx.application.Application; import javafx.beans.value.*; import javafx.scene.*; import javafx.scene.paint.Color; import javafx.scene.text.Text; import javafx.stage.Stage; public class Main extends Application { private DraggableCircle dc; private Text text; private void updateText() { text.setText("("+dc.getCenterX()+", "+dc.getCenterY()+")"); } @Override public void start(final Stage...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT