You have the option to take the exam at the end of class, but it is not a requirement. You have until your course expiration date (one year after enrollment) to pass the exam.