In both systems, question marks and exclamation marks are placed inside or outside quoted material depending on whether they are for the whole sentence or just the quoted words, but colons and semicolons always go outside.