Diatomic molecules will be nonpolar when _____.

A) a pair of shared electrons is located closer to one atom than the other.

B) both atoms are the same element.

C) there is a difference in electronegativity.

D) atoms have a different number of protons.