Of the following compounds, the one having a linear structure is
NH2
CH4
C2H2
H2O
C2H2 has linear structure because carbons are sp-hybridised and lies at 180o.
Be2C + H2O → BeO + x
CaC2 + H2O → Ca(OH)2 + y
Mg2C3 + H2O → Mg(OH)2 + z.
x,y & z are respectively