Option (C) is correct.
Explanation: Her first attempt shows that a dissolved salt by itself does not make water hard: sodium sulphate gave plenty of foam and no scum. Scum is formed when soap reacts with the calcium and magnesium salts in hard water; the soap ions combine with calcium or magnesium ions to form an insoluble white curdy precipitate. Sodium sulphate contains neither. The book's note for the teacher says to prepare hard water by dissolving hydrogencarbonates, sulphates or chlorides of calcium or magnesium, so magnesium chloride will make hard water, and the scum will appear.
The result also shows that it is the metal part of the salt, not the sulphate part, that matters: the chloride of magnesium works, while the sulphate of sodium did not.
Option (A) is wrong: more sodium sulphate still adds no calcium or magnesium ions, so there is still nothing for the soap to form an insoluble precipitate with.
Option (B) is wrong: the sulphate part did not cause hardness in her first attempt, and potassium, like sodium, forms soluble salts with soap; potassium salts of long-chain carboxylic acids are themselves soaps.
Option (D) is wrong: warming cannot produce a precipitate that the substances present cannot form; without calcium or magnesium ions there is no scum at any temperature.
