These questions are provided as examples of the kinds of questions you will be asked on the tests; at least half the questions on the tests will be taken from this set of questions. More questions will be added to this list over time.
These questions are not meant to provide complete coverage of the material covered. You are expected to know everything discussed in class, and the content of the book chapters listed on the syllabus.
Mper = Mper2 * Mper1
Mper1 =
Mper2 =
For questions b) and c), assume you are given a set of N vertices and a set of M polygons, each of which is defined as a sequence of the vertices. The polygons form a connected polygonal surface. Give short, concise answers (not algorithms) to each of these questions.
x := 0; y := 0; d := b - a/2; for i := 0 to a do Plot(x,y); if d >= 0 then x := x + 1; y := y + 1; d := d + b - a; else x := x + 1; d := d + b; end; end;
In the questions below, you can refer to program lines using the line numbers. When you change a line, just show the new code with the appropriate line number. To insert a line, use decimal line numbers (e.g., 11.1 goes between 11 and 12).