This question already has an answer here:
I think we need a close reason for generally bad questions that are hard to find a close reason for. Ones that are usually getting shoehorned into "Too Broad" or "Unclear What You're Asking". Something like:
This question shows a complete lack of understanding of the general concepts, and as such is unlikely to be answerable in its current form. A tutorial is likely in order.
This answer is asking for code or homework help, and shows no effort at solving the problem. It is unlikely to be able to be edited to get better.
If anyone knows what the consensus is on what to do with these questions when they come up, please enlighten me.
TL;DR: It's too hard to choose an accurate close reason for homework / give me code / complete misunderstanding of the language/concepts as a whole questions.