The correct options are
C Al4C3
D Be2C
Carbides of Be and Al contain methanide ion (C4− and thus give CH4 gas (due to the diagonal relationship of Be with Al).
Be2C→2Ce2++C4−,Al4C3→4Al3++C4−
Be2C+4H2O→CH4+3Be(OH)2
Al4C3+12H2O→3CH44Al(OH)3
Whereas the carbides of Mg, i.e. Mg2C3, contain propynide ion (C4−3) and hence give propyne.