The exam is pencil-and-paper. You may not use a computer.
The exam is self-contained. You will not be asked to recall any specific problem from homework or labs.
You will not be expected to write much code on the exam. You may be asked to write interfaces and (abstract) classes (fields and constructors). You will not be asked to write large methods. You may be asked to fill in the blanks in a partially-written method.
You will not be graded on the details of Java syntax. You should know what info goes where (i.e., where fields go, what goes into each of interfaces and classes, how to distinguish abstract classes from non-abstract classes). You will not lose points for a missing semicolon, unbalanced braces, or other minor details as long as indentation/punctuation makes it clear what goes where.
You may bring a single sheet of paper with whatever notes, examples, comments, etc that you wish. You may use both sides of the paper. Typeset or handwritten is fine. The exam is otherwise closed-book, closed-notes.
You may not share paper notes with others during the exam.
I have included the one set of exam answers that I have on hand. Feel free to go over all problems in anyone's office hours.
Exams prior to D-term 15 were using a different grading system then we are this term. Ignore the grading aspect of the earlier exams.
midterm from D-term 2015: you should be able to answer questions 1 and 2; the material for question 3 is not covered on your midterm.
I don't have solutions written out for this exam
midterm from B-term 2012: you should be able to answer questions 1, 2a, and 2b; the material for questions 2c and 3 is not covered on your midterm.
Solutions to this exam (ignore the stuff that fills in the blanks in question 2 -- we haven't covered that material yet)
midterm from B-term 2010: you should be able to answer all questions from this exam.
I don't have solutions written out for this exam
You have 50 minutes to complete the problems on the following pages. There should be sufficient space provided for your answers.
If a problem asks you to create a class hierarchy, we are looking for the interfaces, classes, and abstract classes that you would create for the problem. In particular:
Examples
class (examples of data
and test cases) unless a question asks otherwise