Pupils at a city secondary school were all screened for carrying knives during a visit from police officers this week.