1 Which component contains menus? a. Menu button. b. Title bar. c. Menu bar. d. Combo box. 2. Which of the following statements for a JTextField is false? a. Can be used to display uneditable text. b. Can be used to display editable text. c. Enables users to enter data from the keyboard. d. Displays a list of fields. 3. Which of the following statements about heavyweight components is false? a. AWT components are not heavyweight components. b. Several Swing components are heavyweight components. c. The look-and-feel may vary across platforms. d. The functionality may vary across platforms. 4. Which pair of words does not complete the sentence below correctly? A ________ is a ________. a. Container, Component. b. Container, JPanel. c. JComponent, Container. d. Component, Object. 5. provides the basic attributes and behaviors of a window—a title bar at the top of the window, and buttons to minimize, maximize and close the window. a. JLabel. b. JFrame. c. JSwing. d. JWindowControl. 6. Method can be used to set the layout manager of a container. a. setManager. b. setLayout. c. setLayoutManager. d. setGUILayout. 7. A JLabel can be attached to a JFrame using method: a. attach. b. contain. c. append. d. add. 8. A JRadioButton is different from a JCheckBox in that . a. a JRadioButton is a subclass of JToggleButton, JCheckBox is not. b. normally several JRadioButtons are grouped together and are mutually exclusive. c. a JRadioButton is a type of button, JCheckBox is not. d. a JRadioButton is a state button, JCheckBox is not. 9. The logical relationship between radio buttons is maintained by objects of what class? a. MutualExclusionGroup. b. RadioButtonGroup. c. Group. d. ButtonGroup. 10. Adding a ButtonGroup object to a container: a. is necessary for the functionality of the ButtonGroup to work properly. b. causes all the JRadioButtons in the group to have their event handlers registered. c. results in a compilation error. d. None of the above. 1 Which component contains menus? a. Menu button. b. Title bar. c. Menu bar. d. Combo box. 2. Which of the following statements for a JTextField is false? a. Can be used to display uneditable text. b. Can be used to display editable text. c. Enables users to enter data from the keyboard. d. Displays a list of fields. 3. Which of the following statements about heavyweight components is false? a. AWT components are not heavyweight components. b. Several Swing components are heavyweight components. c. The look-and-feel may vary across platforms. d. The functionality may vary across platforms. 4. Which pair of words does not complete the sentence below correctly? A ________ is a ________. a. Container, Component. b. Container, JPanel. c. JComponent, Container. d. Component, Object. 5. provides the basic attributes and behaviors of a window—a title bar at the top of the window, and buttons to minimize, maximize and close the window. a. JLabel. b. JFrame. c. JSwing. d. JWindowControl. 6. Method can be used to set the.