(a) Compound (I) will form intramolecular hydrogen bond because NO2 and OH group are close together in comparison to that in compound (II).
According to molecular orbital theory electronic configurations of O2+ and O2– species are as follows :

Higher bond order of O2+ shows that it is more stable than O2– .Both the species have unpaired electrons. So both are paramagnetic in nature.