R
Rodney Edmondson
Hi; to all you gurus out there,
I did this quiz two semester ago, I got 70%, but however I tend to
differ with the result. I have cross-checked this a hundred times, I
still come with the same answers. So I wanted to see, if all you guys
will come up with the same answer. Do you think, you are up to it.
well here, it is, with my answers, and I stick by them, if anyone
differs put yours up, or email answers with reasons, for I am really
interested.
My Answers
1. A
2. A
3. B
4. C
5. D
6. A
7. C
8. D
9. B
10. C
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.
I did this quiz two semester ago, I got 70%, but however I tend to
differ with the result. I have cross-checked this a hundred times, I
still come with the same answers. So I wanted to see, if all you guys
will come up with the same answer. Do you think, you are up to it.
well here, it is, with my answers, and I stick by them, if anyone
differs put yours up, or email answers with reasons, for I am really
interested.
My Answers
1. A
2. A
3. B
4. C
5. D
6. A
7. C
8. D
9. B
10. C
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.