Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 16 pages
Exam (elaborations)

Java Chapter 14 Questions with Verified Solutions

Document preview thumbnail
Preview 3 out of 16 pages

Java Chapter 14 Questions with Verified Solutions

Content preview

Java Chapter 14 Questions with
Verified Solutions
Which of the following statements are true?
A. A primary stage is automatically created when a JavaFX main class is launched.
B. You can have multiple stages displayed in a JavaFX program.
C. A stage is displayed by invoking the show() method on the stage.
D. A scene is placed in the stage using the addScene method

E. A scene is placed in the stage using the setScene method ✔️✔️A. A primary stage is
automatically created when a JavaFX main class is launched.
B. You can have multiple stages displayed in a JavaFX program.
C. A stage is displayed by invoking the show() method on the stage.


E. A scene is placed in the stage using the setScene method


Which of the following statements are true?
A. A Scene is a Node.
B. A Shape is a Node.
C. A Stage is a Node.
D. A Control is a Node.

E. A Pane is a Node. ✔️✔️B. A Shape is a Node.
D. A Control is a Node.
E. A Pane is a Node.


Which of the following statements correctly creates a Color object?
A. new Color(3, 5, 5, 1);

,B. new Color(0.3, 0.5, 0.5, 0.1);
C. new Color(0.3, 0.5, 0.5);
D. Color.color(0.3, 0.5, 0.5);

E. Color.color(0.3, 0.5, 0.5, 0.1); ✔️✔️B. new Color(0.3, 0.5, 0.5, 0.1);
D. Color.color(0.3, 0.5, 0.5);
E. Color.color(0.3, 0.5, 0.5, 0.1);


Which of the following statements correctly creates a Font object?
A. new Font(34);
B. new Font("Times", 34);
C. Font.font("Times", 34);
D. Font.font("Times", FontWeight.NORMAL, 34);

E. Font.font("Times", FontWeight.NORMAL, FontPosture.ITALIC, 34); ✔️✔️A. new Font(34);
B. new Font("Times", 34);
C. Font.font("Times", 34);
D. Font.font("Times", FontWeight.NORMAL, 34);
E. Font.font("Times", FontWeight.NORMAL, FontPosture.ITALIC, 34);


Which of the following statements correctly creates an ImageView object?
A. new ImageView("http://www.cs.armstrong.edu/liang/image/us.gif");
B. new ImageView(new Image("http://www.cs.armstrong.edu/liang/image/us.gif"));
C. new ImageView("image/us.gif");

D. new ImageView(new Image("image/us.gif")); ✔️✔️A. new
ImageView("http://www.cs.armstrong.edu/liang/image/us.gif");
B. new ImageView(new Image("http://www.cs.armstrong.edu/liang/image/us.gif"));
C. new ImageView("image/us.gif");
D. new ImageView(new Image("image/us.gif"));

, Which of the following statements correctly rotates the button 45 degrees counterclockwise?
A. button.setRotate(45);
B. button.setRotate(Math.toRadians(45));
C. button.setRotate(360 - 45);

D. button.setRotate(-45) ✔️✔️C. button.setRotate(360 - 45);
D. button.setRotate(-45);


Which of the following statements correctly sets the fill color of circle to black?
A. circle.setFill(Color.BLACK);
B. circle.setFill(Color.black);
C. circle.setStyle("-fx-fill: black");
D. circle.setStyle("fill: black");

E. circle.setStyle("-fx-fill-color: black"); ✔️✔️A. circle.setFill(Color.BLACK);
C. circle.setStyle("-fx-fill: black");


Why is JavaFX preferred?
A. JavaFX is much simpler to learn and use for new Java programmers.
B. JavaFX provides a multi-touch support for touch-enabled devices such as tablets and smart
phones.
C. JavaFX has a built-in 3D, animation support, video and audio playback, and runs as a
standalone application or from a browser.
D. JavaFX incorporates modern GUI technologies to enable you to develop rich Internet
applications. ✔️✔️A. JavaFX is much simpler to learn and use for new Java programmers.
B. JavaFX provides a multi-touch support for touch-enabled devices such as tablets and smart
phones.
C. JavaFX has a built-in 3D, animation support, video and audio playback, and runs as a
standalone application or from a browser.

Document information

Uploaded on
March 21, 2025
Number of pages
16
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
KateJones
4.8
(12)
Sold
31
Followers
0
Items
5707
Last sold
1 week ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions