Since these halogens have linear molecules, they cannot be polar, so C is incorrect. Hydrogen bonding occurs in liquids, so A is also incorrect. Halogens don't form ionic bonds, so B is also incorrect.
The correct answer as to which factor is responsible for the weak attraction between diatomic molecules of the halogens is D. London dispersion forces, which affect all molecules.