Solution:
Key idea: Temporary hardness is caused by the hydrogencarbonates of calcium and magnesium; it is removed by boiling. Permanent hardness is caused by their soluble chlorides and sulphates, which boiling does not remove.
Step 1 — Check options (a) and (b). CaCl2, MgCl2, CaSO4 and MgSO4 stay dissolved when the water is boiled, so they cause permanent hardness. Both (a) and (b) are correct.
Step 2 — Check option (c). Calcium and magnesium hydrogencarbonates break down on boiling, so they cause only temporary hardness.
Ca(HCO3)2→CaCO3+H2O+CO2
Step 3 — Check option (d). Alkali metal ions such as Na+ and K+ do not precipitate soap; in fact sodium carbonate (washing soda) is used to remove hardness.
Note: more than one of the given options is correct here, so this item is answered as a short question that names every correct option.
Therefore, permanent hardness is due to the chlorides and sulphates of calcium and magnesium, so the answer is (a) and (b).