If someone's asking me a question only to see if I know the answer that's not necessarily stupid.

Now, here's a definition I think can definitely be called stupid (in a sad way):

If someone asks questions or a series of questions in an attempt to cause problems for his or her self or for anyone else.