When a student misbehaves during an examination, a teacher should respond constructively rather than punitively. Making the student understand their mistake with love and guidance helps them learn appropriate behavior. Punishment may create resentment, while being partial or helping only toppers would be unfair and unprofessional. The goal is to maintain exam integrity while educating the student.