R
Rodney Edmondson
This was done 2 semester ago, and I have checked the answer hundreds
of times, and still come up with the same answers. I got a 70%. Below
is a copy of my answers and the quiz.
My Answers
1. A
2. A
3. B
4. C
5. D
6. A
7. C
8. D
9. B
10. C
There is the quiz:
1. Which of the following is not a specific GUI component (control or
widgit)?
a)String. b)Label. c)Menu. d) List.
2. Which of the following is not a valid constructor for a JLabel?
a)JLabel( int, horizontalAlignment, Icon image ); b)JLabel(
Icon image );
c)JLabel( String text, Icon image, int horizontalAlignment );
d)JLabel( String text, int horizontalAlignment );
3. Which of the following is not necessary to use the event
delegation model?
a) An event listener must be registered. b)An event handler must be
implemented.
c) The appropriate interface must be implemented. d)The appropriate
interface must be registered.
4. Which of the following is a MouseMotionListener method?
a) mousePressed. b) mouseExited. c)mouseDragged.
d)mouseClicked.
5. The layout manager that allows alignment to be controlled is:
a) FlowLayout. b) BorderLayout. c)GridLayout. d)None of the above.
6. Which of the following GridBagConstraints specifies the number of
columns a component will occupy?
a) gridwidth. b)gridheight. c) weightx. d)weighty.
7. A JFrame supports three operations when the user closes the
window. Which of the choices below is not one of the three:
a) DISPOSE_ON_CLOSE. b)DO_NOTHING_ON_CLOSE. c)LOWER_ON_CLOSE.
d)HIDE_ON_CLOSE.
8. To create a fixed space between all components using BoxLayout,
use the method:
a) createVerticalStrut(). b)createHorizontalStrut(). c)createGlue().
d)createRigidArea().
9. Which layout manager is the default for JFrame?
a) FlowLayout. b)BorderLayout. c)GridLayout. d)None of the above.
10. When a JComboBox is clicked on:
a)An ItemEvent is generated. b)A scrollbar is always generated. c)An
ActionEvent is generated. d)The JComboBox expands to a list.
of times, and still come up with the same answers. I got a 70%. Below
is a copy of my answers and the quiz.
My Answers
1. A
2. A
3. B
4. C
5. D
6. A
7. C
8. D
9. B
10. C
There is the quiz:
1. Which of the following is not a specific GUI component (control or
widgit)?
a)String. b)Label. c)Menu. d) List.
2. Which of the following is not a valid constructor for a JLabel?
a)JLabel( int, horizontalAlignment, Icon image ); b)JLabel(
Icon image );
c)JLabel( String text, Icon image, int horizontalAlignment );
d)JLabel( String text, int horizontalAlignment );
3. Which of the following is not necessary to use the event
delegation model?
a) An event listener must be registered. b)An event handler must be
implemented.
c) The appropriate interface must be implemented. d)The appropriate
interface must be registered.
4. Which of the following is a MouseMotionListener method?
a) mousePressed. b) mouseExited. c)mouseDragged.
d)mouseClicked.
5. The layout manager that allows alignment to be controlled is:
a) FlowLayout. b) BorderLayout. c)GridLayout. d)None of the above.
6. Which of the following GridBagConstraints specifies the number of
columns a component will occupy?
a) gridwidth. b)gridheight. c) weightx. d)weighty.
7. A JFrame supports three operations when the user closes the
window. Which of the choices below is not one of the three:
a) DISPOSE_ON_CLOSE. b)DO_NOTHING_ON_CLOSE. c)LOWER_ON_CLOSE.
d)HIDE_ON_CLOSE.
8. To create a fixed space between all components using BoxLayout,
use the method:
a) createVerticalStrut(). b)createHorizontalStrut(). c)createGlue().
d)createRigidArea().
9. Which layout manager is the default for JFrame?
a) FlowLayout. b)BorderLayout. c)GridLayout. d)None of the above.
10. When a JComboBox is clicked on:
a)An ItemEvent is generated. b)A scrollbar is always generated. c)An
ActionEvent is generated. d)The JComboBox expands to a list.