Factual error: At the "Battle of the Bands" scene, the kids arrive and have less than the length of one song to get ready to go on stage. (We see the band up on stage and hear the Battle of the Bands person tell the kids they're going on after that band.) Yet, when they get up on stage, they've got outfits, hair, makeup - including fancy braids and spikes - that just plain couldn't have been thrown together in five minutes.
Factual error: When Dewey is getting the class to jam on "Smoke on the Water" for the first time, he tells the girl bass player to play a G, but he shows the guitar player the chords to the song in the key of A. The chords do not match the bass line. A real guitar player who has played this song would not make this mistake.
Answer: It is never said but If I was to guess, they got it from the guy he was pretending to be (Ned's) information from the school office.