Delighted pupils are celebrating after their school won a national prize for its approach to science, technology, engineering and maths.