It depends. What is the sentence you want to use?
Generally, periods (to signify the end of sentences) will always come after apostrophes. Quotation marks and parentheses will go outside of the period, but apostrophes go inside.
Outside, like: The car was John's, so he had to pay for the repairs. However, if you are using the apostrophes as single quotation marks, then inside. Commas and periods always go inside quotation marks. "Like this."
If they are part of the title, they will go within the quotation marks.
Typically yes but it depends on the context.
British style places commas and periods that are not part of the quoted material outside of the quotation marks. Also, in technical applications or when discussing coding, punctuation that is not part of a text string should be placed outside of the quotes. Placing commas and periods inside the quotes implies that they are part of the string to be displayed.
go outside find the doctor go inside go outside then inside
you stay inside and let it go outside when it needs to.
Outside the period