Since $1$ mole of compound $X$ reacts with $Na$ to evolve $1$ mole of $H_{2}$ gas,
therefore the compound should have $2$ active hydrogen atoms per mole which is possible only in option $d$.
$CH _{2} OHCH _{2} CH _{2} CH _{2} OH +2 Na \rightarrow NaOCH _{2} CH _{2} CH _{2} CH _{2} ONa +2 H$