CSCI 105 Spring, 2009 Quiz 9: Computer Programming Concepts - Prof. Mark G. Terwilliger, Quizzes of Computer Science

The questions and answers for quiz 9 of the csci 105 introduction to computer programming course held in spring, 2009. The quiz covers various programming concepts such as graphics, events, and collections.

Typology: Quizzes

Pre 2010

Uploaded on 08/07/2009

koofers-user-5d8
koofers-user-5d8 🇺🇸

9 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSCI 105 Introduction to Computer Programming Spring, 2009
Surprise Quiz #9
20 Points
MATCHING: Select the item from below that best matches the description.
1. ___ It will specify the width and color of a line or the outline of a rectangle or ellipse.
2. ___ It will specify the color of the interior of a rectangle or ellipse.
3. ___ A variable of this type is used to keep track of graphics for the current form.
4. ___ A function call that initializes the graphics for a form.
5. ___ Function that will draw an oval that is not a circle.
6. ___ Function that will draw a circle.
7. ___ An event that gets triggered when the user presses a mouse key.
8. ___ An event that gets triggered when the user moves his mouse.
9. ___ An event that gets triggered when the user releases a mouse key.
10. ___ This parameter keeps track of things like the mouse’s location and which mouse button was pressed.
11. ___ If this attribute is equal to MouseButtons.Left, we know the left mouse button was clicked.
12. ___ Drop one of these controls on your form if you need a main menu at the top of your form.
13. ___ Add this character before a letter in a menu item to create a hot key.
14. ___ If you want a color dialog box to pop up onto your form, this event is used.
15. ___ To find out which color was chosen by a user, examine this attribute.
16. ___ If you’re going to use an ArrayList, you must include this directive at the top of your program.
17. ___ A variable of this type can hold a collection of values.
18. ___ This event handler is needed to redraw items on the screen.
19. ___ A combination of data items and functions stored in one structure.
20. ___ A control that allows you to click an up or down triangle to modify an integer variable.
CHOICES:
a) Ampersand (&) b) ArrayList c) Brush
d) Class e) ColorDialog.Color ab) ColorDialog.ShowDialog()
ac) CreateGraphics() ad) e.Button ae) g.DrawEllipse(p,30,40,30,50)
bc) Graphics bd) MenuStrip be) g.DrawEllipse(p,30,40,50,50)
cd) MouseDown ce) MouseEventsArg de) MouseMove
abc) MouseUp abd) NumericUpDown abe) Paint
acd) Pen ace) using Systems.Collections
21. Extra Credit Super Mega Bonus Question: Who is the author(s) of your textbook (select ALL that apply)?
a) Anders Hejlsberg b) Evan Schemm c) Mark Terwilliger d) Thomas Boger e) Tony Gaddis

Partial preview of the text

Download CSCI 105 Spring, 2009 Quiz 9: Computer Programming Concepts - Prof. Mark G. Terwilliger and more Quizzes Computer Science in PDF only on Docsity!

CSCI 105 Introduction to Computer Programming Spring, 2009

Surprise Quiz

20 Points

MATCHING: Select the item from below that best matches the description.

  1. ___ It will specify the width and color of a line or the outline of a rectangle or ellipse.
  2. ___ It will specify the color of the interior of a rectangle or ellipse.
  3. ___ A variable of this type is used to keep track of graphics for the current form.
  4. ___ A function call that initializes the graphics for a form.
  5. ___ Function that will draw an oval that is not a circle.
  6. ___ Function that will draw a circle.
  7. ___ An event that gets triggered when the user presses a mouse key.
  8. ___ An event that gets triggered when the user moves his mouse.
  9. ___ An event that gets triggered when the user releases a mouse key.
  10. ___ This parameter keeps track of things like the mouse’s location and which mouse button was pressed.
  11. ___ If this attribute is equal to MouseButtons.Left, we know the left mouse button was clicked.
  12. ___ Drop one of these controls on your form if you need a main menu at the top of your form.
  13. ___ Add this character before a letter in a menu item to create a hot key.
  14. ___ If you want a color dialog box to pop up onto your form, this event is used.
  15. ___ To find out which color was chosen by a user, examine this attribute.
  16. ___ If you’re going to use an ArrayList, you must include this directive at the top of your program.
  17. ___ A variable of this type can hold a collection of values.
  18. ___ This event handler is needed to redraw items on the screen.
  19. ___ A combination of data items and functions stored in one structure.
  20. ___ A control that allows you to click an up or down triangle to modify an integer variable.

CHOICES:

a) Ampersand (&) b) ArrayList c) Brush d) Class e) ColorDialog.Color ab) ColorDialog.ShowDialog() ac) CreateGraphics() ad) e.Button ae) g.DrawEllipse(p,30,40,30,50) bc) Graphics bd) MenuStrip be) g.DrawEllipse(p,30,40,50,50) cd) MouseDown ce) MouseEventsArg de) MouseMove abc) MouseUp abd) NumericUpDown abe) Paint acd) Pen ace) using Systems.Collections

  1. Extra Credit Super Mega Bonus Question : Who is the author(s) of your textbook (select ALL that apply)? a) Anders Hejlsberg b) Evan Schemm c) Mark Terwilliger d) Thomas Boger e) Tony Gaddis