Actually there are only four questions and they need to answer yes to each one to "pass". It is a "test" of how they personally evaluate their progress in the materials on the site. Once they can answer yes to all the questions their status is upgraded and they get more materials. The redirect is needed so send them to one of two pages to inform them whether they are moving ahead or need to continue at their current level.
Honestly, I have struggled a bit with header calls. If I understand correctly, this code must go above the DOCTYPE declaration so it exists before any HTML is present.