It's compulsory, but it is also useless (and easy as well). Don't bother attending lectures, just go to the labs and do the quizzes online. I got 87 without going to any of the lectures other than the first one.
This worked for last year (most of my friends did this too and all got above D), don't know if they changed the unit though, last year we did not have a final exam.