This depends totally on the nature of the course.
For internal examinations and tests, we hold them within the classroom under appropriate conditions, allowing for accommodations that each student requires.
Some external certifications require the student to either attend a certified exam centre (e.g. Pearson's VUE), some can be done from home and some can be done in the classroom. Check with your tutor of your course.