We need to find the number of molecules with bond order 2 from: C2,O2,Be2,Li2,Ne2,N2,He2.
Using Molecular Orbital Theory, the bond order is calculated as Bond Order=2Nb−Na where Nb is the number of bonding electrons and Na is the number of antibonding electrons.
Since C2 (12 electrons) has configuration (σ1s)2(σ1s∗)2(σ2s)2(σ2s∗)2(π2p)4, the bond order is (8−4)/2=2. ✓
Now O2 (16 electrons) has configuration (σ1s)2(σ1s∗)2(σ2s)2(σ2s∗)2(σ2p)2(π2p)4(π2p∗)2, so the bond order is (10−6)/2=2. ✓
For Be2 (8 electrons), the bond order is (4−4)/2=0. ✗
For Li2 (6 electrons), the bond order is (4−2)/2=1. ✗
For Ne2 (20 electrons), the bond order is (10−10)/2=0. ✗
For N2 (14 electrons), the bond order is (10−4)/2=3. ✗
For He2 (4 electrons), the bond order is (2−2)/2=0. ✗
Therefore the molecules with bond order 2 are C2 and O2.
This gives the answer 2.