Quiz 3 (Programming 3 - Lab)
If radio1 references RadioButton class and radioGroup references ToggleGroup class, which of the following statements is valid?
radioGroup.addToggleGroup(radio1)
radio1.setToggleGroup(radioGroup)
radioGroup.setToggleGroup(radio1)
radio1.addToggleGroup(radioGroup)
radioGroup.addToggleGroup(radio1)
radio1.setToggleGroup(radioGroup)
radioGroup.setToggleGroup(radio1)
radio1.addToggleGroup(radioGroup)
________Is a layout container that manages controls in five regions.
GridPane
AnchorPane
BorderPane
FlowPane
GridPane
AnchorPane
BorderPane
FlowPane
lf comboBox1 references ComboBox class; Which of the following is valid
comboBox1.getItems().addAll("Ahmed", "Huda", "Ali");
comboBox1.getChildren().setAll("Ahmed", "Huda", "Ali");
comboBox1.getChildren().addAll("Ahmed", "Huda", "Ali");
comboBox1.getItems().add ("Ahmed", "Huda", "Ali");
comboBox1.getItems().addAll("Ahmed", "Huda", "Ali");
comboBox1.getChildren().setAll("Ahmed", "Huda", "Ali");
comboBox1.getChildren().addAll("Ahmed", "Huda", "Ali");
comboBox1.getItems().add ("Ahmed", "Huda", "Ali");
When creating BorderPane using a constructor with one argument, the node that is passed as the argument is placed in the ____________
Left
Bottom
Top
Right
Center
Left
Bottom
Top
Right
Center
In Javafx, setHgap() and setVgap() methods are used in __________
GridPane
VBox
BorderPane
TabPane
GridPane
VBox
BorderPane
TabPane
What is the name of the method that is used to start the execution of a thread?
init();
resume();
start();
run();
None of these.
init();
resume();
start();
run();
None of these.
Which of the following piece of code will create and start this thread?
new Runnable(MyRunnable).start();
new Thread(MyRunnable).run();
new Thread(new MyRunnable()).start();
new MyRunnable().start();
None of these.
new Runnable(MyRunnable).start();
new Thread(MyRunnable).run();
new Thread(new MyRunnable()).start();
new MyRunnable().start();
None of these.
Which method must be defined by a class implementing the java.lang.Runnable interface?
void run()
public void run()
None of these.
public void start()
void run()
public void run()
None of these.
public void start()
If menuBar references MenuBar class and editMenu references Menu class, which of the following is valid?
menuBar.getMenus().addAll(editMenu)
editMenu.getItems().addAll(menuBar)
menuBar.getItems().addAll(editMenu)
editMenu.getMenuBar().addAll(menuBar)
menuBar.getMenus().addAll(editMenu)
editMenu.getItems().addAll(menuBar)
menuBar.getItems().addAll(editMenu)
editMenu.getMenuBar().addAll(menuBar)
Which one is identified as control in javafx
HBox
PieChart
Button
GridPane
HBox
PieChart
Button
GridPane
السؤال السابق
السؤال التالي
Exam Test Quiz Exams Tests Quizzes اختبار امتحان اختبارات امتحانات كويز كويزات
تم حفظ الإجابات، بالتوفيق
Exam Test Quiz Exams Tests Quizzes اختبار امتحان اختبارات امتحانات كويز كويزات