Midshipman
A midshipman is a junior officer in training in the Royal Navy. Historically, midshipmen gained experience aboard ship in navigation, seamanship, and leadership as preparation for commissioned rank.
Source:
Oxford Companion to Ships and the Sea