Object Oriented Programming - I (3140705) MCQs

MCQs of JAVAFX UI controls and multimedia

Showing 1 to 10 out of 18 Questions
1.
_____ is used to display a short text or an image, it is a non-editable text control.
(a) TextField
(b) Label
(c) TextArea
(d) EditTextView
Answer:

Option (b)

2.
Which of them is correct Label class constructor?
(a) Label()
(b) Label(String text)
(c) Label(String text, Node graphics)
(d) All of them
Answer:

Option (d)

3.
_____ enables an application to have some action executed when the application user clicks the button.
(a) Button
(b) CheckBox
(c) RadioButton
(d) Slider
Answer:

Option (a)

4.
Which of the following is incorrect Button class constructor?
(a) Button()
(b) Button(Boolean enabled)
(c) Button(String text)
(d) Button(String text, Node graphic)
Answer:

Option (b)

5.
When a button is clicked, the following event is sent.
(a) ButtonEvent
(b) ActionEvent
(c) MouseEvent
(d) ClickEvent
Answer:

Option (b)

6.
_____ is used to provide more than one choices to the user.
(a) ComboBox
(b) TextField
(c) CheckBox
(d) RadioButton
Answer:

Option (c)

7.
Which of the following is incorrect CheckBox class constructor?
(a) CheckBox(String text[])
(b) CheckBox(String text)
Answer:

Option (a)

8.
Which of the following control is used to implement multiple choice questions?
(a) List
(b) ComboBox
(c) RadioButton
(d) CheckBox
Answer:

Option (c)

9.
Which of the following is correct implementation of RadioButton?
(a) RadioButton button1 = new RadioButton("Italy");
(b) RadioButton button1 = new RadioButton("Italy","Spain");
(c) RadioButton button1 = new RadioButton(1,2,3,4);
(d) ToggleGroup group = new ToggleGroup();
Answer:

Option (a)

10.
_____ allows a user to enter a single line of unformatted text.
(a) TextArea
(b) EditTextView
(c) Label
(d) TextField
Answer:

Option (d)

Showing 1 to 10 out of 18 Questions