I'm unsure, in the sentence, since the "to be" verb is applying to homework, but comes after a plural, which is used?
What classes is the homework for?
What classes is the homework for?
What classes are the homework for?
What classes are the homework for?