The correct option is B Gas dispersed in a liquid
The colloidal solutions are divided into different categories based on the physical state of the dispersed phase and the dispersion medium.
Shaving cream produces foam which is a colloidal system wherein a gaseous phase is dispersed within a liquid continuous phase. All whipped and shaving cream come under this category of colloid.
Hence, option (b) is correct.