Among KO2,AlO−2,BaO2,andNO+2, unpaired electron is present in:
1s2∗1s22s2∗2s22pz22px22py2∗2px1.
It has one unpaired electron.
BaO2 has O+22 ion. The electronic configuration of the O+22 containing 14 electrons can be written as:
1s2∗1s22s2∗2s22pz22px22py2.
It is diamagnetic as it has 0 unpaired electrons.