Exam 3 grading guidelines
These are the grading guidelines that were used to grade the
third exam.
Page 1
Question 1:
All or nothing here
Page 2
Question 2:
+1 if mentions integrity of variables but nothing else
+3 if they have the general idea but say something contradictory/incorrect
Full credit if the person talks about maintaining sensible values for
private variables, protecting private variables
Question 3:
+1 if they have something down, but are pretty far off
+3 if generally the right idea, but something is missing
Full credit if they say class variables can’t be changed and ideally some of
the following: class variables are static, having them saves memory, some
example like Math.PI
Page 3
Question 4:
-2 for no references to the Strings
-2 for no references to the arrays
-2 for d[] not being a separate array
-2 for each array variable that does not point where it should (b, f, and g,
in particular)
-2 if "E" is in the wrong spot in d[]
Question 5:
Parts (b) and (e) are not being graded -- so everybody gets those two points
Answers are (a) null, (c) error, and (d) null. One point each
Page 4
Question 6:
4 total points for the field, 5 total points for the method
-1 for no class
-1 for each of the fields, including -1 for no static for quantity and total
-1 for no return type
-1 for each parameter missing
-2 if they have System.out.println instead of returning a String
-1 for each syntax error (e.g. missing ; or })
-2 for missing +
-1 if they don’t declare a new String variable but use “number” instead
Question 7:
-1 for no semicolon
-2 if they use keyword new
Page 5
Question 8:
-3 if they miss the first one
-4 for each of the last three they miss
It is okay for them not to include decimal places (ie, only integer answers)
Page 6
Question 9:
-1 for a minor mistake
-4 if they got the general idea but had a few mistakes
-7 if they had no clue what they were doing but did something!
0 if they had nothing
Page 7
Question 10:
-1 every minor error
-2 Forgetting to check for the index of the third integer is valid deserves
the next lower
-2 for not actually adding values from the array and checking if it equals
100
-1 proper return type
-1 proper parameter
-2 returns (-1) improperly
-2 returns the index
Page 8
Question 11:
-1 for each minor error
-2 for each non-minor error
At least 4 points for effort that doesn’t look too bad
|