Multiple Choice
Assume that the variable checkbox references a JCheckBox object. To determine whether the check box has been selected, use the following code:
A) if (isSelected(checkBox) ) {/*code to execute, if selected*/}
B) if (checkBox.isSelected() ) {/*code to execute, if selected*/}
C) if (checkBox) {/*code to execute, if selected*/}
D) if (checkBox.doClick() ) {/*code to execute, if selected*/}
Correct Answer:

Verified
Correct Answer:
Verified
Q47: Which one of the following GUI components
Q48: When a component is added to a
Q49: This layout manager arranges components in rows.<br>A)
Q50: Which of the following statements is NOT
Q51: This is a graphic image that is
Q53: The System.exit method will end the application.
Q54: This is a basic window that has
Q55: AWT components are commonly called _ components
Q56: Some of the common GUI components are
Q57: What does the following statement do?<br>AddButton.addActionListener(new AddButtonListener());<br>A)