It was a day of celebration at a secondary school when pupils, accompanied by their parents, collected their GCSE results.