In the essay “How to Ask Questions the Smart Way”, Eric Raymond details his opinions on the importance of how one asks technical questions on the internet. Despite the somewhat unprofessional approach Raymond took to write his essay, he adequately explained what happens when you carelessly ask a question versus taking the time to ask a detailed question.
Raymond establishes the following principles as necessary for a “smart question”:

This is an example of a post that meets most of the criteria listed by Raymond. While the post itself is short and simple, it is one of the most viewed posts on Stack Overflow. It has drawn many users to thoroughly answer the question and is a post that I’ve personally used while learning Java.

This is an example of a question that does NOT meet Raymond’s criteria. Immediately you can tell it is likely a homework question and shows no effort in solving the problem.

Even the users commenting have zero interest in helping the original poster which follows Raymond’s logic in his essay.
Smart and stupid questions are subjective based on the person being asked. However, you are much more likely to receive the answer you are looking for if you put more thought and effort into your question. Otherwise, why should the person you are asking to put any thought or effort into their answer to your question?
“How to Ask Questions the Smart Way” by Eric Raymond
“What is a NullPointerException, and how do I fix it” by Ziggy
“Need to create a python script to return this output” by Aman Rawat