The correct answer is: Positive particles in the nucleus are attracted to shared electrons, so the atoms stay close together.
In covalent bonding, atoms share electrons in such a way that the positively charged nuclei of the atoms are attracted to the shared electrons. This attractive force helps to stabilize the bond and keeps the atoms close together. The balance of attractive and repulsive forces between the positively charged nuclei and the negatively charged electrons is what allows covalent bonds to form and be stable.