单项选择题

Foam extinguishes a fire mainly by().

A.cooling
B.chemical action
C.smothering
D.inerting the air