The document contains a midterm exam for a Computer Programming 2 course. The exam has 3 questions worth a total of 15 marks. Question 1 (4 marks) asks students to determine the output of a code sample. Question 2 (3 marks) asks students to identify compilation errors in code samples. Question 3 (8 marks) asks students to write code for a Student class and a driver class to test it.