First officer

Executive Officer (or XO for short) is the second-in-command of a starship. Usually, when the captain is off-duty, the XO takes over. In away team situations, it is the XO who must take charge of the team, according to Starfleet regulations.