CS360: Exam 1: 10/22/97. Grading of Question 3
I graded this as follows. You start with all the
points and then had deductions for the following:
- Extraneous statements: 1 or 2 points, depending on how egregious they were.
- Passing j instead of the address of j in a():
2 points.
- Saying return b(j+i) in a(): 1 points.
- Saying i = i+3 in main(): 1 points. (There would be an
extra st %r0 -> [fp] plus some other stuff in the assembler).
- No return statement in main(): 1 point.
- Passing two arguments to a(): 2 points.
- Arguments to c() reversed: 2 points.
- *j instead of the address of j.
- Saying j = j+5 in main() -- see #4 above for why that's
a problem: 1 point.
- Splitting the return b(j)+i; into multiple statements: 1 point.
- No return statement in a(): 1 point.
Histogram of scores