Sunburn is caused by UV radiation by damaging DNA, as the following diagram shows:
Visible light and UV radiation differ in wavelength:
Since only Sunscreen A blocks UVA and UVB radiation, then it effectively prevents sunburn.
7.2m questions
9.7m answers