The correct answer is
A. CaCO3.Stalactites and stalagmites are formed when water containing dissolved calcium carbonate drips from the ceiling of a cave and then evaporates. The calcium carbonate is left behind, and over time it builds up to form these amazing structures.
CaCl2 is calcium chloride, which is a salt. It is not a component of stalactites and stalagmites.
MgCl2 is magnesium chloride, which is also a salt. It is not a component of stalactites and stalagmites.
MgCO3 is magnesium carbonate, which is a mineral. It is not a component of stalactites and stalagmites.
CaCO3 is calcium carbonate, which is a mineral. It is the main component of stalactites and stalagmites.