CSE 142 Spring 2011 Midterm grading rubric 1. 2 points for the first 3 (all or nothing) 3 points for "0.07" or ".07" 1 point for "07" or 0.07 0 points for everything else including 07 and "7" 2. 3 points per line (-1 per wrong word) 3 points for "... do you ... to do ..." structure -3 having quotes -5 per column swap 3. 3 points for 0 0 7 answer (all or nothing) 4 points for other lines (-2 per wrong #, capped at -4 per line) -6 if mistook println in the while loop 4. a. 2 points for condition (>= 2), 1 point for reason (70% of class missed this) b. 2 points for condition ("Never"), 1 point for reason c. 3 points (all or nothing) 5. 1 point per blank For the programming questions, you could lose additional points for irrelevant code and syntax errors along the lines of: -1 mild errors -2 egregious error -3 multiple egregious errors 6. header 1 name/params 1 return type 2 Random object random # 1 calls nextInt 1 correct range return 1 at least 1 return 2 at least 1 true, 1 false loop 1 exists 1 correct bounds printing 1 prints somewhere 1 "I got it!" and "I give up!" 2 comparison exists 3 everything works 7. a) header 1 name/params 1 return type return 1 exists 1 returns at least 1 string comparison 2 .equals (-1 if ==) 2 everything works b) 1 header nextWord 1 calls nextWord 1 calls correctly (saves return value) loop with print 1 exists 1 end # changes over time while loop 1 exists 1 test related to not printing a line 1 correct variable initialization 2 everything works