(i) The effervescence is due to bubbles of carbon dioxide gas. Sodium carbonate, a metal carbonate, reacts with dilute hydrochloric acid to give a salt, water and carbon dioxide:
Na2CO3(s)+2HCl(aq)→2NaCl(aq)+H2O(l)+CO2(g)
Test: Pass the gas through lime water (calcium hydroxide solution). Lime water turns milky, because a white precipitate of calcium carbonate is formed:
Ca(OH)2(aq)+CO2(g)→CaCO3(s)+H2O(l)
(ii) At first the lime water turns milky, as above. When excess carbon dioxide is passed, the milkiness disappears: the calcium carbonate reacts with more carbon dioxide and water to form calcium hydrogencarbonate, which is soluble in water.
CaCO3(s)+H2O(l)+CO2(g)→Ca(HCO3)2(aq)

The four things an acid reacts with. Every one of them gives a salt; what comes with the salt is the clue.