(a) X is calcium. Calcium reacts with cold water, less violently than sodium, to form calcium hydroxide and hydrogen:
Ca(s)+2H2O(l)→Ca(OH)2(aq)+H2(g)
The metal floats because the bubbles of hydrogen gas formed stick to its surface, which fits clue 1.
(b) The solution formed is calcium hydroxide solution, which is lime water. Carbon dioxide reacts with it to form calcium carbonate, which is insoluble in water and appears as a white milkiness:
Ca(OH)2(aq)+CO2(g)→CaCO3(s)+H2O(l)
The milkiness therefore shows that the solution contains calcium hydroxide, so X is calcium.
(c) Not sodium (clue 2): sodium would give sodium hydroxide solution. Carbon dioxide forms sodium carbonate with it, which is soluble in water, so the solution would stay clear and not turn milky.
Not magnesium (clue 1): magnesium does not react with cold water; it reacts (and floats) only in hot water. X reacts with cold water.
X reacts with cold water, so it is above magnesium, and its hydroxide is lime water, which fits calcium: K > Na > Ca > Mg.


Basic, amphoteric and acidic oxides, and how each behaves with an acid and with a base.