I studied math, and all our exams were oral exams. The professor had to actively accept you for the exam, which was usually a given, if you did your homework. (But you could probably get into the exam without doing the homework, too, if you convinced them.)