The correct option is
A Al4C3,CaC2,Mg2C3Carbide is a compound of carbon with less electronegative element.
The most electropositive metals form ionic carbides. Examples: Al4C3,CaC2,Mg2C3
Non-metals of electronegativity similar to that of carbon form covalent carbides.
Example: SiC,B4C