Option (D) is correct.
Explanation: An ionic compound must show every one of the properties the book lists, not just one of them:
- a high melting point, because a lot of energy is needed to overcome the strong attraction between the ions;
- soluble in water but insoluble in kerosene or petrol;
- does not conduct as a solid, because the ions are held in fixed places;
- conducts when molten or dissolved in water, because the ions are then free to move.
Solubility alone cannot decide it: both P and S dissolve in water and not in kerosene. The deciding test is conduction. S fits all four properties: its melting point of 1074 K is high, it dissolves in water but not in kerosene, and it conducts only once its ions are set free by melting or dissolving.
Option (A) is wrong: P is soluble in water and insoluble in kerosene, like an ionic compound, but it never conducts, not even when molten or dissolved in water. So it contains no ions; its low melting point (459 K) points the same way, as for a substance like sugar.
Option (B) is wrong: Q conducts even as a solid, which an ionic solid cannot do. A solid that conducts both as a solid and when molten, and dissolves in neither solvent, behaves like a metal.
Option (C) is wrong: R conducts as a solid, and an ionic solid does not. A very high melting point with conduction in the solid and insolubility in both solvents fits a non-metal exception such as graphite, not an ionic compound.
