Devon school head banned after he replaced pupil's exam