|
|
These are the grading guidelines that were used to grade the
second exam.
Page 1
Question 1
- All or nothing here. The wrong section gets zero credit.
Page 2/3
Question 2
- -3 each if a and b are wrong
- -2 each if c and d are “no output”, but -3 if anything else that is
incorrect
- -1 if d has 2 outputs (one of them being the correct one)
- -2 if e is “giants of logic”, and -1 if only 2 of 3 correct outputs,
-3 if all incorrect
Page 4
Question 3
- -1 if no parentheses, no brackets, = instead of == , no semicolon
- -2 if no Scanner, int not obtained by scanner, if-else condition is
wrong.
- -4 if for loop is used
Page 5
Question 4
- -3 for saying it does not compile because the condition is false
- -4 for completely wrong
Question 5
- 2 points for the right number
- 3 points for the right reason
Page 6
Question 6
- +2 for each correct number
- +2 correct return between first number and second line
- -1 for each extra number and each extra line
- Awesome for writing “Press any key to continue…”
Problem 7
- +3 for correctly leading to the while loop as necessary
- +3 for proper loop condition
- +3 for proper content of while loop
- -1 for each type of minor error
- +1 for having a pulse
Page 7
Question 8
- -3 for using a variable other than choice in the switch statement
- -3 for using characters instead of integers in the case statements
- -1 for minor syntactical errors (no brackets, no full colons,
parentheses, etc.)
- -1 for “case default”
- -2 no breaks or returns
- -3 for returning the strings instead of printing them out
- -3 for calling dispatch() again before the break
Page 8
Question 9
- -2 for each wrong answer (right answers are true, true, 3, false)
Question 10
- Automatically get 2 points if they write ANYTHING
- No points off if they say something like “i can be changed if we say
i = foo(i)”
- No points off if they say something true and they have an idea of
what the question is asking and what’s going on
- -1 if they have the idea somewhat
Question 11
- Automatically get 2 points if they write ANYTHING
- No points off if they say something true and they have an idea of
what the question is asking and what’s going on
- -1 if they have the idea
- Answer of “all” for (a) and “none” for (b) gets -1, -1
|
|