The correct option is A Increases in going from N2 to N+2, decreases in going from O2 to O+2
The electronic configuration of N2 and O2 are as follows:
N2:σ(1s)2σ∗(1s2)σ(2s)2σ∗(2s)2π(2px)2π(2py)2σ(2pz)2
O2:σ(1s)2σ∗(1s2)σ(2s)2σ∗(2s)2σ(2pz)2π(2px)2π(2py)2π∗(2px)1π∗(2py)1
Going from N2 to N+2, one bonding electron is removed. This decreases the bond order and hence increases the bond length. Going from O2 to O+2, one antibonding electron is removed. This increases the bond order and hence decreases the bond length.