CS 211 Prelim1 Grading Guide: Problem1: 1a (1pt) no partial credit 1b (2pt) 1c (2pt) Mention repeats (1pt) Mention order (1pt) 1d (1pt) 1e (1pt) 1f (1pt) 1g (1pt) 1h (2pt) correctly answer two of the three outputs (1pt) correctly answer all three outputs (2pt) 1i (2pt) 1j (2pt) We have decided that everyone gets these 2pts. It is announced on the course website. Just go to a consultant with your prelim if you were deducted on this question. Problem 2 (5pt): Base case: 1pt Correct statement of Inductive hypothesis and the goal of Inductive step: 1pt Correct usage of Inductive hypothesis in the Inductive step: 1pt Correct math in the Inductive step: 1pt Conclusion: 1pt Problem 3 (10pt): Boundardary conditions for nint (2pt) case for E->(E+E) (2pt) correct usage of recursion (3pt) correct usage of node type (3pt) default return (return null;) (1pt) correct usage of fin methods (2pt) syntax, comments, style (2pt) ParseTree toString method (3pt): root==null case (1pt) not null case (2pt) AddNode toString method (4pt): Alternative solution: return leftExpr.toString() + "+" + rightExpr.toString(); leftExpr correct: (1pt) rightExpr correct: (1pt) Correct position and usage of "+": (2pt) IntNode toString method (2pt): "" (1pt) +value (1pt) Bonus points: each correct answer is worth 1 point.