A man fell asleep while cramming for an exam.