Puzzles

The coloured hat exam Three students have been put in detention by their evil maths teacher, Mr Chalk.
Do five suffice?