inside of quotation marks.
ANS2:It depends on what is being quoted and where the quote ends up in the sentence. It is safe to put the exclamation point where it most appropriately belongs:
- How could you have possibly asked "Where does the exclamation point go?"! (This is one way to punctuate outrage over a question...There are going to be people who disagree with this punctuation, I'm sure.)
- Are you sure he said "Ouch!" after he hit his finger?
- I know I heard him say "ouch" after he hit his finger! (I heard a not-so-emphatic ouch.)
- After he hit his finger, I know he said "ouch"! (I'm emphatically sure I heard it!)
See the link