Final answer:
The molecule with a bond order of 2 is B2.
Step-by-step explanation:
The bond order of a molecule is determined by the number of bonding electrons and the number of antibonding electrons. A bond order of 2 indicates a stable molecule with a double bond. From the given options, the molecule with a bond order of 2 is (B) B2.