Object Oriented Programming - I (3140705) MCQs

MCQs of JAVAFX UI controls and multimedia

Showing 11 to 18 out of 18 Questions
11.
The following method is used to get text from textfield.
(a) getText()
(b) text()
(c) enteredText()
(d) textEntered()
Answer:

Option (a)

12.
_____ allows a user to enter multiple lines of plain text.
(a) TextArea
(b) EditTextView
(c) Label
(d) TextField
Answer:

Option (a)

13.
_____ is a typical element of a user interface that enables users to choose one of several options.
(a) CheckBox
(b) TextField
(c) CheckBox
(d) ComboBox
Answer:

Option (d)

14.
______ displays a horizontal or vertical list of items from which the user may select, or with which the user may interact.
(a) TextArea
(b) ComboBox
(c) ListView
(d) CheckBox
Answer:

Option (c)

15.
_____ is used to provide a scroll bar to the user so that the user can scroll down the application pages.
(a) Slider
(b) ScrollBar
(c) List
(d) ScrollView
Answer:

Option (b)

16.
Which of the following is not method of ScrollBar class?
(a) setMin()
(b) setMax()
(c) setValues()
(d) setSize()
Answer:

Option (d)

17.
_____ is used to display a continuous or discrete range of valid numeric choices and allows the user to interact with the control.
(a) Slider
(b) ScrollBar
(c) List
(d) ScrollView
Answer:

Option (a)

18.
Which of the following is incorrect Slider class constructor?
(a) Slider()
(b) Slider(double min, double max, double value)
(c) Slider(double value, double min, double max)
(d) None of them
Answer:

Option (c)

Showing 11 to 18 out of 18 Questions