Now, now, mention the c word and you will only get lynched
I think the school is right, the student knew his footwear wasn't allowed but just because he got away with it normally he thought he could wear them to his exams where they do tend to enforce rules more strictly.