This depends on the quality of the question, I should think. If it only consists of text that is obviously a dump from a homework assignment (or other similar set-piece, like a textbook exercise, say) with no attempt from the OP to engage with the material or ask a substantial question beyond "do my work for me plz" (even if it is tempered with something like this particular OP's comment "Tips only.. Not the solution", which effectively reads "do my wokr fr me plz, but only some of itplz"), then please do not answer.
Giving any answers to those questions simply encourages that user, and any others that see those answers, to post the type of no-effort help-vampire extremely-low-quality bottom-of-the-barrel questions that really harm the average level of questions on the site. If that's the type of site you want to post answers in, then there's plenty of such venues linked in this thread that will happily enlist your efforts to feed the help vampires. On this site, we don't want those questions, and we close them so that they don't get answers.
There is also a long-standing policy that if someone posts a full answer to a homework question (i.e. not just tips) then that does get summarily deleted (potentially only temporarily) by moderators. This is not what's happening with your answer: it is not getting deleted, and it is still currently standing. The only thing that you're getting is people in the comments politely asking you not to engage in behaviours which harm the site's quality.
As for your follow-up question: it is possible to ask on-topic homework questions; for a sampling, see this list of open upvoted homework-tagged threads - and compare it with the awful stuff you get by searching for closed, unanswered, negative-score homework-tagged questions. Most of the questions, by number, that we get which fit the homework-and-exercises tag description are off-topic, and they are closed and deleted as promptly as the review queue allows (usually within one or two days to closure, then deleted by the roomba at about the nine-day mark). The tag exists for the minority of such questions which are on-topic, and which do exist.
But please do not answer the off-topic ones.
Finally, note what ultimately happened to the question, as documented in this screenshot ─ it was removed by the roomba, under the following criterion:
- The system will automatically delete closed, unlocked questions with zero or negative score having no positively scored or accepted answers or pending reopen votes, that were closed for any reason other than duplicate nine or more days ago and haven't been edited in the past nine days. (
RemoveAbandonedClosed
)
This type of cleanup can only happen if any answers have positive scores, so that downvotes on the answers are also a way to ensure that the system handles this type of off-topic question appropriately.