When Trip first meets his new captain on the Columbia he actually called her ma'am. No, no, no. Senior officers are called sir regardless of gender. Wasn't there even a scene in Voyager's first episode or so where this was explained for everyone who didn't already know?