Attempt the question, check the explanation, and continue with similar questions to build confidence before exams.
By humming along
Ignoring it completely
Changing the song immediately
Getting angry
Continue with nearby questions to strengthen the same chapter concept while you still have the context fresh in mind.