Professional Documents
Culture Documents
Section 9 Quiz
(Answer all questions in this section)
1. The start() method is the entry point for all JavaFX applications.
Mark for Review
(1) Points
True (*)
False
True (*)
False
Button
ImageView
ScrollBar
Object (*)
Correct
(1) Points
True (*)
False
6. How would you create a custom color that is pure cyan (equal parts green and blue)?
Mark for Review
(1) Points
Correct
setLayoutX(double d)
setX(double d)
setStroke(Paint paint)
setStrokeWidth(double d) (*)
Correct
8. Which color is not directly used when creating custom Color.rgb()?
Mark for Review
(1) Points
Green
Blue
Yellow (*)
Red
(1) Points
True (*)
False
Section 9 Quiz
(Answer all questions in this section)
True (*)
False
True (*)
False
13. JavaFX doesn’t provide you with UI elements, shapes and text. So you must always
create your own graphics. Mark for Review
(1) Points
True
False (*)
Correct
14. Lambda Expressions provide much more effective and cleaner syntax for working with
GUI applications and sorting lists. Mark for Review
(1) Points
True (*)
False
15. When you write code for MouseEvents, you are telling a Node to listen for a particular
event. Mark for Review
(1) Points
True (*)
False
Section 9 Quiz
(Answer all questions in this section)
True (*)
False
2. How would you create a custom color that is pure cyan (equal parts green and blue)?
Mark for Review
(1) Points
(1) Points
Correct
setLayoutX(double d)
setX(double d)
setStroke(Paint paint)
setStrokeWidth(double d) (*)
Correct
Yellow (*)
Green
Red
Blue
Section 9 Quiz
(Answer all questions in this section)
6. Lambda Expressions provide much more effective and cleaner syntax for working with
GUI applications and sorting lists. Mark for Review
(1) Points
True (*)
False
True (*)
False
8. JavaFX doesn’t
create your ownprovide you
graphics. with UI elements, shapes and text. So you must always Mark for Review
(1) Points
True
False (*)
Correct
9. When you write code for MouseEvents, you are telling a Node to listen for a particular
event. Mark for Review
(1) Points
True (*)
False
True (*)
False
Incorrect. Refer to Section 9 Lesson 3.
Section 9 Quiz
(Answer all questions in this section)
Group (*)
HBox
TilePane
StackPane
12. How would you set the title of the Stage primaryStage?
Mark for Review
(1) Points
primaryStage("New Title!");
primaryStage = "New Title!;
primaryStage.title = "New Title!";
13. The start() method is the entry point for all JavaFX applications.
Mark for Review
(1) Points
True (*)
False
True (*)
False
ImageView
Object (*)
Button
ScrollBar
Section 9 Quiz
(Answer all questions in this section)
1. Lambda Expressions provide much more effective and cleaner syntax for working with
GUI applications and sorting lists. Mark for Review
(1) Points
True (*)
False
2. JavaFX doesn’t provide you with UI elements, shapes and text. So you must always
create your own graphics. Mark for Review
(1) Points
True
False (*)
Correct
setOnMouseMoved()
setOnMouseClicked() (*)
setOnMouseReleased()
setOnMouseDragged()
True (*)
False
True (*)
False
Section 9 Quiz
(Answer all questions in this section)
Button
ScrollBar
Object (*)
ImageView
True (*)
False
True (*)
False
9. The start() method is the entry point for all JavaFX applications.
Mark for Review
(1) Points
True (*)
False
(1) Points
Group (*)
StackPane
TilePane
HBox
Correct
Section 9 Quiz
(Answer all questions in this section)
11. How would you create a custom color that is pure cyan (equal parts green and blue)?
Mark for Review
(1) Points
Green
Yellow (*)
Red
Blue
True (*)
False
setLayoutX(double d)
setStroke(Paint paint)
setX(double d)
setStrokeWidth(double d) (*)
Correct