Q: Does the comma or period go inside or outside of the quotation marks?
A: “Inside,” she said.
Q: “What about other punctuation, such as question marks or exclamation points?” they asked.
A: Other punctuation marks go inside the quotation marks only if they belong to the material quoted.
Who wrote “Gone With the Wind”? – Question mark doesn’t belong to quote.
“Who wrote that screenplay?” she asked. – Question mark belongs to the quote.
In general, use quotation marks to cite exact verbiage from a person or another source, to set off titles when italics are not used, and to introduce a word or phrase being used in an unusual manner. After defining the new term, quit using the quotes for the duration.