Learning theory and exam preparation