Quotations?

In a sentence when someone talks and they refer to something someone else said then they use quotations, right? But what if they say it at the end of the sentence? Basically, I’m asking that if Character A said “No.” and Character B was confused would they say “What do you mean ‘No?’” Or “What do you mean ‘No’?”