Answer :
Diatomic gases contain covalent bonds. Take for example hydrogen atoms. They have one electron, which leads to the electron configuration 1s. This atom will gain stability by sharing its electron valence with other equal atom which is also willing to gain stability by sharing its valence electron. Then two atoms of hydrogen share their valence electrons to form a diatomic molecule through a covalent bond.