So there you have it Aniami, everyone is right but your teacher. In a logical world a sentence that ended in a parenthetical statement or a quotation would end like this...
.).
or .".
or ?".
or ?)?
or .).
or...(you get the point.).

The only excuse for this not being so is comprehension and brevity.