These were of three types: testing the lunar EVA suit in Earth orbit (Apollo 9), exploring the lunar surface, and retrieving film canisters from the Scientific Instrument Module stored in the Service Module.
Seven of the missions involved extravehicular activity (EVA), spacewalks or moonwalks outside of the spacecraft.