The correct option is C MgAl2O4
As O2− ions forms ccp, spinel has 4 negative ions in its structure. So, total positive charge should be 8.
It has one Mg+2 ion occupying one-eight of the tetrahedral holes and 2 Al+3 ions occupying one-half of the octahedral holes. So, the compound is MgAl2O4.