Step 1: Write the reaction of calcium carbide with heavy water.
Calcium carbide reacts with heavy water \((D_2O)\) to form deuterated acetylene and calcium hydroxide:
\[
CaC_2+2D_2O\rightarrow C_2D_2+Ca(OD)_2
\]
Thus,
\[
X=C_2D_2
\]
which is deuterated ethyne (acetylene).
Step 2: Write the structure of \(C_2D_2\).
The structure of ethyne is
\[
D-C\equiv C-D
\]
There is a triple bond between the two carbon atoms.
Step 3: Determine the hybridization of carbon atoms.
Each carbon atom forms:
\[
1 \sigma \text{ bond with deuterium}
\]
and
\[
1 \sigma \text{ bond with another carbon}
\]
Thus, each carbon atom forms two sigma bonds and has linear geometry.
Therefore, each carbon atom undergoes
\[
sp
\]
hybridization.
Step 4: Final conclusion.
Hence, the hybridization of carbon atoms in \(X\) is
\[
\boxed{sp}
\]