CS360 Midterm -- October 18, 1999.
- There are four questions.
- You have 50 minutes.
- Do your answers on a separate sheet of paper.
- Note, on question 2, you may think that there is a problem with the
code. That is intentional. You must pretend that you are a compiler
and compile and run the code given.
In assigning grades, I first like to set the basic competence level.
Here's my breakdown:
This makes 30 points for a B, 38 for an A. Here are the ranges:
- Question 1: Basic competence: 6 points (structure, two
tree traversals, checking p->type == 0, printing key.s, details),
a good answer should be at least 8 points.
- Question 2:
Basic competence: 11 points (6 points for part 1,
4 points for part 2, one
point for part 3). A good answer should
be at least 14 points.
- Question 3:
Basic competence: 5 points for explaining buffering,
and none for convenience.
A good answer is 6 points for a lame genuflect toward convenience.
- Question 4:
Basic competence: 8 points (structure, opendir, return val, traversal,
stat return, print name/recursion, initial call)
Good answer: 10 points.
- 41 - 47: A+
- 38 - 41: A
- 36 - 38: B+
- 30 - 36: B
- 28 - 30: C+
- 23 - 28: C
- 16 - 23: D
- Under 16: F
Histograms for each question