Pepsin functions in the stomach's acidic environment (pH 1.5-2), where it begins protein digestion. Trypsin operates in the alkaline duodenum (pH 7.5-8) and requires different conditions. Option A incorrectly states pepsin works in alkaline medium, while options B and D place these enzymes in the wrong locations.