Usually the examination consists of a written exam at the end of the course. Books and other materials that the students are allowed to bring to the exam may vary from course to course.
Before a student is allowed to take an exam, the student must fulfill all compulsory elements of the course. In most courses, written and oral performances during the course affects the final grade of the course. If a student fails to pass the exam he or she can retake the exam at a later date.
Since the requisites for examinations vary from course to course you will receive more information from your teacher what is adequate for your course.