Filters
Question type

Study Flashcards

The type of control normally used when you want the user to only be allowed to select one option from several possible options is the


A) Button
B) RadioButton
C) CheckBox
D) Any of these

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

Radio buttons are normally used when you want the user to be able to select one or more options from a group of several possible options.

A) True
B) False

Correct Answer

verifed

verified

Select all that apply. Which of the following methods can be used with both ArrayLists and ObservableLists?


A) the get method
B) the size method
C) the remove method
D) the set method

E) C) and D)
F) B) and D)

Correct Answer

verifed

verified

When the user selects an item in a ListView, a change event occurs.

A) True
B) False

Correct Answer

verifed

verified

Select all that apply. The SetStyle method is used to apply style rules directly to a JavaFX node. This method


A) allows you to pass only one style rule at a time, as a string argument
B) allows you to pass multiple style rules as string arguments
C) is considered a better way to add styles than using a stylesheet
D) removes any styles that were previously applied to that node

E) All of the above
F) A) and B)

Correct Answer

verifed

verified

To build a menu system you must


A) create a MenuBar object
B) create the Menu objects and register an event handler for each menu item object
C) Add the MenuBar object to the scene graph
D) All of these are necessary steps.

E) A) and B)
F) B) and D)

Correct Answer

verifed

verified

Select all that apply. Which of the following ComboBox methods require a boolean argument?


A) getValue
B) setVisibleRowCount
C) setEditable
D) setValue

E) B) and D)
F) B) and C)

Correct Answer

verifed

verified

C

A TextArea is a multiline TextField that can accept or display several lines of text.

A) True
B) False

Correct Answer

verifed

verified

In a JavaFX applicaton, a CSS type selector corresponds to a specific JavaFX node.

A) True
B) False

Correct Answer

verifed

verified

The __________ class is used to create a menu bar.


A) MenuBar
B) Menu
C) MenuItem
D) Bar

E) None of the above
F) B) and D)

Correct Answer

verifed

verified

Select all that apply. Which of the following are possible selection nodes available to the ListView control?


A) multiple selection mode
B) single selection mode
C) multiple interval selection mode
D) single interval selection mode

E) B) and C)
F) A) and C)

Correct Answer

verifed

verified

Which of the following statements will set a ListView control, puppyListView, to be 300 pixels high and 200 pixels wide?


A) puppyListView.setSize(200, 300) ;
B) puppyListView.setSize(300, 200) ;
C) puppyListView.setPrefSize(200, 300) ;
D) puppyListView.setPrefSize(300, 200) ;

E) None of the above
F) A) and D)

Correct Answer

verifed

verified

Which of the following statements creates an empty TextArea?


A) TextArea textArea = new TextArea() ;
B) TextArea textArea = new TextArea(" ") ;
C) TextArea = new textArea() ;
D) TextArea textArea = new TextArea.textArea("") ;

E) All of the above
F) A) and D)

Correct Answer

verifed

verified

Which CSS type selector corresponds with the TextField JavaFX class?


A) text-box
B) text-field
C) text-area
D) text

E) A) and C)
F) B) and D)

Correct Answer

verifed

verified

Which of the following statements will allow a user to type input into a field of a ComboBox named myComboBox?


A) ComboBox.setEditable;
B) myComboBox.setEditable(true) ;
C) ComboBox.setEditable(myComboBox) ;
D) myComboBox = ComboBox.setEditable(true) ;

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

B

Given the following styles, what size will the text of myLabel be? .root { -fx- font-size: 12pt; } ) label { -fx- font-size: 18pt; }


A) 12 pts
B) 18 pts
C) 15 pts
D) This will cause an error because there are duplicate font-size styles.

E) B) and D)
F) A) and B)

Correct Answer

verifed

verified

On a Web page, the __________ specifies what information to display and the __________ specifies how that information should be displayed.


A) HTML, JavaFX
B) code, CSS
C) HTML, CSS
D) CSS, HTML

E) All of the above
F) B) and C)

Correct Answer

verifed

verified

A ComboBox differs only from a ListView in that a ComboBox must have a minimum of three items.

A) True
B) False

Correct Answer

verifed

verified

False

To apply specific styles to all of the nodes in a scene, use the __________ selector.


A) .stage
B) .top
C) .root
D) .all

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Which of the following will create a CheckBox that displays pizza and shows up as selected?


A) CheckBox checkOne.setSelected(true) = "pizza";
B) CheckBox checkOne = new CheckBox("pizza") ;
CheckOne.setSelected(true) ;
C) CheckBox checkOne = new CheckBox("pizza") ;
CheckBox.setSelected(false) ;
D) CheckBox checkOne("pizza") = setSelected(true) ;

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

Showing 1 - 20 of 40

Related Exams

Show Answer