Practice your skill:
(a) Sodium reacts vigorously with water to give a sodium hydroxide solution; hydrogen gas is also given off.
(b) A white precipitate is formed when silver nitrate is added to sodium chloride solution. This white precipitate is silver chloride, which is highly insoluble in water. This is why silver nitrate solution is used to detect the presence of halide ions.