Question Mark
A question mark indicates a question.
Who are you?
What is that?
When are you coming?
Where is the car?
How did he paint that car?
A quotation that ends with a question mark is not followed by a comma.
“Where are you going?” she said.
Quotation and question marks can be omitted in rhetorical questions--that is, sentences that are interrogative in form but declarative in meaning.
What the hell.
Really.
How about that.
You’re kidding.
Exclamation Point
An exclamation point expresses a strong emotion or emotions. Interjections are often used with exclamation points.
No!
Get out!
Help!
Listen!
Like a question mark, a quotation that ends with an exclamation point is not followed by a comma.
“That really hurt!” he said.