You can earn XP in Call of Duty: Modern Warfare 3 by completing different objectives.