The phrase "What a silly question" is not an ad-hominem. It might be mildly insulting, but it's the question that is silly, not the person asking it.]
There are no silly questions, only silly people who think there are such things as silly questions.