Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.(TCOs 1, 4, and 6) Which of the following would be an appropriate use of a che

ID: 2246568 • Letter: 1

Question

1.(TCOs 1, 4, and 6) Which of the following would be an appropriate use of a check box control?
Marital status (single, married)
Gender (male, female)
Insurance benefits (health, vision, dental)
Either marital status (single, married) or gender (male, female)

2.(TCOs 1, 4, and 6) In order for multiple radio buttons to function as a group, they must all be added to the same
JButton
JGroup
RadioGroup
ButtonGroup

3.(TCOs 1, 4, and 6) The _____ method of a radio button returns true if that button is on.
isSelected()
getSelected()
Selected()
RadioSelected()

4.(TCOs 1, 4, and 6) A JTextArea control
provides a bounding box used for the layout of JTextField components.
is used to group multiple JTextField components together.
is a control used to display multiple lines of text
provides a scrollbar for a JTextField component.

5.(TCOs 1, 4, and 6) Which of these is NOT one of the three parts to the event-handling mechanism in Java?
Event source
Event action
Event object
Event listener

6.(TCOs 1, 4, and 6) Complex layouts are often created in Java GUIs by using multiple _____ components
JLayout
JPanel
FlowLayout
GridLayout

7.(TCOs 1, 4, and 6) Menus are attached to windows by calling the _____ method.
addMenuBar
setJMenuBar
setMenu
addJMenuBar

8.(TCOs 1, 4, and 6) Which of the following statements is false?
All the methods in JRadioButton are inherited from javax.swing.AbstractButton
You can use an icon on JRadioButton
All the methods in JRadioButton are inherited from javax.swing.AbstractButton.
Multiple radio buttons can be selected within a ButtonGroup.
All of the methods in JRadioButton are also in JButton

9.(TCOs 1, 4, and 6) The method that creates a keyboard shortcut for a menu item is
setKeyboard.
setMnemonic.
setShortCut.
setKeyAccess.

10.(TCOs 1, 4, and 6) Which method returns true if the radio button radOne has been selected by the user?
radOne.Selected()
radOne.Selected(true)
radOne.isSelected(true)
radOne.isSelected()

Explanation / Answer

1. The answer is Insurance Benefits(health, vision, dental) (Checkbox is all about selcting options and not about choosing one option)
2.The answer is ButtonGroup
3.The answer is isSelected (This returns boolean value based on radio button is selected or not)
4. The answer is JTextArea is a control used to display multiple lines of text
5. The answer is "Event Action" is not the part of event handling mechanism of java.
6. The answer is JPanels
7.The answer is setJMenubar
8.The false statement is "Multiple radio buttons can be selected within a ButtonGroup."
9 The answer is setMnemonic.
10.The answer is radOne.isSelected()

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at drjack9650@gmail.com
Chat Now And Get Quote