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

Introduction to Java Question 1 (1 point) Which of the following statements are

ID: 3794363 • Letter: I

Question

Introduction to Java

Question 1 (1 point)

Which of the following statements are true?

Question 1 options:

Save

Question 2 (1 point)

To add two nodes node1 and node2 into a pane, use ________.

Question 2 options:

Save

Question 3 (1 point)

To remove two nodes node1 and node2 from a pane, use ________.

Question 3 options:

Save

Question 4 (1 point)

To add a node to the the first row and second column in a GridPane pane, use ________.

Question 4 options:

Save

Question 5 (1 point)

To place a node in the left of a BorderPane p, use ________.

Question 5 options:

Save

Question 6 (1 point)

The ________ property is not defined in the javafx.scene.shape.Ellipse class.

Question 6 options:

Save

Question 7 (1 point)

The ________ property is not defined in the javafx.scene.shape.Rectangle class.

Question 7 options:

Save

Question 8 (1 point)

The ________ property is not defined in the javafx.scene.shape.Line class.

Question 8 options:

Save

Question 9 (1 point)

The ________ property is not defined in the javafx.scene.shape.Shape class.

Question 9 options:

Save

Question 10 (1 point)

Which of the following statements is not correct?

Question 10 options:

Save

Question 11 (1 point)

What is the output of the following code?

IntegerProperty d1 = new SimpleIntegerProperty(1);
IntegerProperty d2 = new SimpleIntegerProperty(2);
d1.bind(d2);
System.out.print("d1 is " + d1.getValue() + " and d2 is " + d2.getValue());
d2.setValue(3);
System.out.println(", d1 is " + d1.getValue() + " and d2 is " + d2.getValue());

Question 11 options:

Save

Question 12 (1 point)

What is the output of the following code?
IntegerProperty d1 = new SimpleIntegerProperty(1);
IntegerProperty d2 = new SimpleIntegerProperty(2);
d1.bindBidirectional(d2);
System.out.print("d1 is " + d1.getValue() + " and d2 is " + d2.getValue());
d1.setValue(3);
System.out.println(", d1 is " + d1.getValue() + " and d2 is " + d2.getValue());

Question 12 options:

Save

Question 13 (1 point)

Suppose a JavaFX class has a binding property named weight of the type DoubleProperty. By convention, which of the following methods is defined in the class?

Question 13 options:

Save

Question 14 (1 point)

Which of the following can be used as a source for a binding properties?

Question 14 options:

Save

Question 15 (1 point)

Which of the following statements is not true?

Question 15 options:

Save

Question 16 (1 point)

Every JavaFX main class ________.

Question 16 options:

Save

Question 17 (1 point)

Every JavaFX main class ________.

Question 17 options:

Save

Question 18 (1 point)

Which of the following statements is not true?

Question 18 options:

Save

Question 19 (1 point)

Which of the following statements is not true?

Question 19 options:

Save

Question 20 (1 point)

Which of the following statements does not correctly create a Font object?

Question 20 options:

Save

Question 21 (1 point)

To add two nodes node1 and node2 to the the first row in a GridPane pane, use ________.

Question 21 options:

A) A Shape can be placed in a Control. B) A Pane can be placed in a Control. C) A Node can be placed in a Scene. D) A Node can be placed in a Pane.

Explanation / Answer

1. B -----coz all the panel designing will be in control panels

2. C

3. A

4. E

5. A

6. D----coz centre from x will be taken but center from y cannot be considered

7. E

8. B

9. D

10. E

11. c

12. B

13. A

14. C

15. B

16. D

17. A

18. B

19. C

20. B

21. A

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote