Getting enough sleep, food, and exercise can help your mind work at its best, which is important before an exam.