Programming, to a large extent, is about applied problem-solving, and is not about memorization. This means that the best way to prep for programming exams isn't to sit down and read through the slides -- it's by solving a lot of problems.
As a result, I strongly recommend you do the following when preparing: