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*/}


B) if (checkBox.isSelected()) {/*code to execute, if selected*/}

Computer Science & Information Technology

You might also like to view...

When compared to the full desktop apps, all of the following are differences in the Web Apps Ribbons EXCEPT:

A) The Format Painter is not available in Office Web Apps. B) AutoSave is not available in Office Web Apps. C) The Word Web App does not have the ability to edit objects such as SmartArt and WordArt. D) You cannot use macros in Office Web Apps.

Computer Science & Information Technology

What security feature can you use to cause a mobile device to be completely locked for a period of time if the passcode is entered incorrectly a number of times?

A. Remote wipe B. Reset to factory C. Configure undiscoverable D. Lockout period

Computer Science & Information Technology

?_____ is based on combinations of the three logical structures, or control structures (one of which is shown in the accompanying figure), which serve as building blocks for the process.

A. ?Modular design B. ?Interface design C. ?Visual design D. ?Product design

Computer Science & Information Technology

Data structures are part of an ADT’s ______.

a. definition b. implementation c. specifications d. usage

Computer Science & Information Technology