Past programming exams:
No solutions will be given for past programming exams. The best way to prepare for a programming exam is to practice best exams in a timed environment.
Princeton has a large collection of past programming exams available here.
A good way to prepare for the programming portion of the exam would be to complete some of these programming exams in a timed-environment.
Note their exams are 50-minutes while ours are 100-minutes.
Also note that this is a second course in computer science and thus we cover more advanced programming concepts than Princeton's course.