Answer & Explanation
C) both A & B
Here the given compound is MgSO4.
In the given compound, Sulphur (S) and Oxygen (O) are two non metals and Magnesium (Mg) is a metal.
In this compound, Sulphur and Oxygen reacts to form covalent bond and the metal Magnesium reacts with both non metals Sulphur and Oxygen to form ionic bonds.
Hence, in the given compound MgSO4 there are both covalent and ionic bonds.