Chapter 5
Contents: True/False | Multiple Choice | Discussion
| Programs
True/False
- False
- True
- True
- False
- True
- False
- True
- False
- False
- False
Multiple Choice
- d
- b
- d
- c
- d
- d
- d
- b
- a
- b
Discussion
- Answers here will vary widely. This
exercise can be used as a springboard for discussing how the description of
an object varies according to the use the object is being put to. Different
descriptions will abstract different properties.
- Answers can be checked interactively. Some descriptions assume
a default orientation (origin in upper left).
- A point at coordinates (130,130)
- A blue circle with a red outline centered at (30,40) with a
radius of 25
- A square 20 units on each side centered at (30,30). The inerior
is greenish blue and the outline is 3 pixels wide and black.
- A veritcal dark red line of length 100, with its bottom at point
(100,200) and an arrow pointing up at the upper end.
- An unfilled "veritcal" oval with width 10 and height 50 centered
at (55, 75)
- An orange hourglass with black outline centered at point (5,5).
(Note, some platforms may show this a bit differently; try it out!)
- The words "Hello World!" centered at (100,100), displayed in an italic
courier font with 16 point type.
- The program draws a red circle in a default graphics window and then
waits for the user to click the mouse 10 times. Each time the user clicks,
the circle moves to the point that was clicked. After 10 clicks, the window
disappears.
Programming Exercises
Code for Chapter 5 Exercises