Gomer Pyle, U.S.M.C.: Season 1, Episode 22
Gomer and Carter take the exam for the officer's training program.