The basis for this course is in the lecture notes. The slides often work as a summary of the lecture notes, and stresses what is important. But that does not mean the exam will restrict itself to aspects discussed during a lecture, or that everything that is discussed during the lectures is in the lecture notes. In order to be safe, I suggest you study both.
In addition, anything that comes up during doing the exercises and lab assignments should be considered part of the course.
Check exercises, check midterm material vs. final exam
On this page you can find a large number of exams to practice with, often including a separate version that has answers.