Typical anionic detergents are alkylbenzenesulfonates. The alkylbenzene portion of these anions is lipophilic and the sulfonate is hydrophilic. Two different varieties have been popularized, those with branched alkyl groups and those with linear alkyl groups. Basically they contain sulfonate ions.
Cationic detergents are similar to the anionic ones, with a hydrophobic component, but, instead of the anionic sulfonate group, the cationic surfactants have quaternary ammonium as the polar end. The ammonium center is positively charged.
Non-ionic detergents are characterized by their uncharged, hydrophilic headgroups. Typical non-ionic detergents are based on polyoxyethylene or a glycoside.
Soap is a salt of a fatty acid.The process of preparing a soap is called 'saponification'.
Hence, A−3, B−4, C−2, D−1.