Past Tests and Exams for COMP102
This page has links to past tests and exams and model solutions for the last decade of COMP102.
Note that the course has changed over the years, especially in 2009 (moved to 15 points, had two smaller tests), and again in 2011 (changing from thecomp100 library to the comp102 library with the UI class) so that tests and exams from previous years may not always match the current version of the course.
To interpret older tests/exams that didn't use the
comp102 library, the following changes will generally be sufficient:
- change
System.out.print...toUI.print... - when reading input from the user, change
scan.next...()toUI.next...()and deleteScanner scan = new Scanner(System.in) - change
JOptionPane.showInputDialog(null, "prompt string")toUI.askString("prompt string") - change
canvas.addMouseListener(this);toUI.setMouseListener(this); - change
canvas.clear();toUI.clearGraphics(); - change
canvasorthis.canvastoUI(for all drawing commands) - change
JButton ... = new JButton("...");toUI.addButton("...", this); - change
actionPerformed(ActionEvent e){ String button = e.getActionCommand();tobuttonPerformed(String button){ - remove anything with
JFrame, frame, DrawingCanvas, Panel, JButton, addActionListener
Note also that brief Java documentation is provided with tests and exams (even when not included in the versions below).
Past Term Tests:
Do the tests before looking at the model solutions!!- 2011 T2: Test #2, solutions ;
- 2011 T2: Test #1, solutions ;
- 2011 T1: Test #1, solutions ; Test #2, solutions
- 2010 T2: Test #1, solutions ; Test #2, solutions
- 2010 T1:
- 2009 T2: Test, solutions
- 2009 T1: Test #1, solutions ; Test #2, solutions
- 2008 T2 : Test #1, solutions ; Test #2, solutions
- 2008 T1: Test #1, solutions, code ; Test #2, solutions, some draft code
- 2007 T2: Test #1, solutions ; Test #2, solutions, some of the draft code
- 2007 T1: Test #1 solutions ; Test #2, solutions, some draft code
- 2006 T2: Test #1 solutions ; Test #2 part A and part B, solutions: part A and part B.
- 2006 T1: Test, solutions Some code
- 2005 T2: Test, solutions,
- 2005 T1: Test, solutions,
- 2004 T2: Test, solutions,
- 2004 T1: Test, solutions,
- 2003 T2: Test, solutions,
- 2003 T1: Test, solutions,
- 2002 Test, solutions,
- 2001 Test, solutions, and comments.
- 2000 Test
- 1999 Test
Past Final Exams:
Do the exams before looking at the model solutions!- 2010 T2 Exam:
- Converted to comp102 library: exam Model answers
- Original: exam and Model answers
- 2010T1 Exam:
- 2009 T2 exam and Model answers
- 2009 T1 exam and Model answers
- 2008 T2 exam and Model answers
- 2008 T1 exam and Model answers
- 2007 T2 exam and Model answers
- 2007 T1 exam and Model answers
- 2006 T2 exam and Model answers
- 2006 T1 exam and Model answers
- 2005 T2 exam and answer to qns 1-3
- 2005 T1 exam and answer to qns 1-3
- 2004 T2 exam and Unchecked model answers to some questions
- 2004 T1 exam
- 2003 T2 exam
- 2003 T1 exam
- 2002 exam
- 2001 exam
- 2000 exam


