Which statement appropriately describes the primary role of the alveoli?
a) The alveoli filter bacteria from the inhaled air.
b) Exchange of oxygen for carbon dioxide takes place in the alveoli.
c) The alveoli prevent the lungs from separating the thorax.
d) Humidification of air before reaching the lungs is performed by the alveoli.