There are far, far more constructive ways to educate the asker of such a question than to outright tell them they're stupid. Especially because, while such a question might not be the most constructive, it being there doesn't hurt anyone at all.
It doesn't cost anything to be nice and to try and make the community feel more welcoming.