CS360 Midterm -- October 18, 2000.
- There are three questions.
- You have 50 minutes.
- Do your answers on a separate sheet of paper.
- Put your name (username is fine) on every sheet.
My advice is to do questions 1 and 3 first, and then spend the rest of
your time on question 2. I am giving you plenty of time for this,
so make your answers good.
Assigning Grades
Overall, I was pleased with this one. Most of you showed that you've
grasped the material well enough to convince me as such. Not bad.
In assigning grades, I first like to set the basic competence level.
Here's my breakdown:
- Question 1: Basic competence: 9 points for the basic stuff
plus one mistake. A good answer should be at least 12 points.
- Question 2:
Basic competence: 11 points
(recursive subroutine, opendir, traversal, . and ..,
proper file name, lstat, checking directories,
remove/unlink, recursive call,
closedir, error checking).
A good answer should be at least 14 points (two right out of the dlist,
creating the file name, calling chmod).
- Question 3:
Basic competence: You should get 4 points automatically for setting
the setuid bit so you can call it later as your boss.
A good answer will be at least 6 points for trying to hide it, and
convincing me enough to give you a point for the reasonableness
of your hiding it.
This makes 24 points for a B and 32 for an A.
- 35 - 38: A+
- 32 - 35: A
- 29 - 32: B+
- 24 - 29: B
- 22 - 24: C+
- 16 - 22: C
- 14 - 16: D
- Under 14: F
Histograms for each question