None of the other answers so far have touchedThis answer focuses on the fact that "homework" questions (which is a useless term for a specific subset of "how-to" questions or sometimes debugging style questions) are not inherently off-topic for Stack Overflow.
Now you mention in the comments that you're talking about "zero-effort homework dumps". I'll quote this answer by @Shog9:
You're conflating three different forms of "effort":
Research effort: has the asker searched for a solution before asking?
Definition effort: has the asker put enough thought into the problem to formulate a clear, specific question?
Problem-solving effort: has the asker done anything to solve the problem himself before asking?
We have a close reason for #1: Duplicate.
We have multiple close reasons for #2: Unclear, Too Broad and a grab-bag of more specific reasons under Off Topic.
We do not have a close reason for #3 though, because:
Judging problem-solving effort is really subjective. Assuming sufficient research and definition effort, you're left to make a decision as to whether or not the asker has suffered enough yet; this quickly turns into a sick Milgram experiment.
Trying to maximize effort actively subverts the purpose of this site. We're trying to create a library of reusable information here, with the idea that if someone takes the time to define their problem and then search for it they won't have to ask a question at all! When it works, any answer can go on to benefit many people beyond the person who asked the question... But that also means that the majority of folks using a given answer are putting in zero problem-solving effort beyond what is needed for #1 and #2.
You see the problem here? If we disallow all questions that don't require investment beyond research, we give up the ability for folks to research their problems using Stack Overflow, and end up with a library of questions so specific to their askers as to be worthless to anyone else.
Effort is useful when it produces results
- so we moderate those results. If your question is clear enough, specific enough and unique enough to prompt the addition of useful information to our corpus, then it has value; otherwise, it does not. The close reasons strive to reflect this goal.
So you see, we have specific close reasons for questions lacking in specific types of effort, but not for questions lacking problem solving effort.
That said, any how-to question (or any question for that matter) can be unclear, too broad, primarily opinion based, or otherwise closeable.
Now about the topicality of such questions on PPCG, I imagine that all such questions would be immediately (or very quickly) closed as off-topic which would push them back here. So this would just be a massive waste of time and energy for everyone involved, the asker would probably be overly confused and would still not know how to improve their question in order to make it acceptable here.
So no, this would not be fun, not at all.