SampleExam17s2.pdf
Note that the solution to the programming exercises is not definitive in the sense that other solutions may also be acceptable.