I am not posting a sample exam for the simple reason that I'm teaching this course for the first time and don't have a prior exam to hand out. Hopefully this guide will help you prepare successfully for the exam.
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 much by way of methods.
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 or unbalanced braces as long as your indentation 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.
You have 50 minutes to complete the problems on the following pages. There should be sufficient space provided for your answers.
You do not need to show templates or an Examples
class.
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 unless a question asks otherwise