I hate when teachers do this! Depending on the student, that kid might never raise their hand again. My math teacher (who was also the football coach) would make a joke every time I asked an earnest but stupid question, eliciting laughs from all his players.