A high school has been pulled up on its pupils' use of 'derogatory' and homophobic language.