used to emphasize your opinion
Is he stupid or what?
used when you are not sure about sth
I don't know if he's a teacher or what.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition