It's happened to me before - in my case this particular person knew the answer to the qn they posed but did it because they simply wanted to paint me in a bad light - I don't get these kind of ppl - isn't there enough problems in the world already that they need to be one too?
I like how you approached this