Analyze the molecular structure of each diatomic molecule: For O2, each oxygen atom shares two pairs of electrons, forming a double covalent bond. For N2, each nitrogen atom shares three pairs of electrons, forming a triple covalent bond. For H2 and F2, each molecule forms a single covalent bond.