A study asked law school graduates studying for the bar exam to keep a diary of their habits leading up to the exam.