The pictures of students wearing cartons on their heads and writing the exam inside a classroom were shared widely on social media.