What function do the alveoli perform?

A. hold receptors for the sense of smell

B. exchange oxygen in the air for carbon dioxide in the blood

C. carry oxygenated blood away from the heart

D. exchange oxygen in the blood for carbon dioxide in the air

D. exchange oxygen in the blood for carbon dioxide in the air

The function of the alveoli is to exchange oxygen in the air for carbon dioxide in the blood. Therefore, the correct answer is B.