This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] Bond order 1: $H_2$ (diamagnetic), $O_2^{2-}$ (diamagnetic), $F_2$ (diamagnetic), $B_2$ (paramagnetic, two unpaired electrons in $\pi$ orbitals). Others have bond order 0.5 ($He_2^+$, $Ne_2^+$), 2.5 ($O_2^+$) or 2 ($N_2^{2-}$). So only $B_2$ qualifies. Answer: 1.