Cost Function and Behavior Online Exam