The effect of assessments and examinations on the learning of medical students