The correct option is D Neither by electric field nor by magnetic field
By Lorentz force,
→F=q(→E+→v×→B)
As photon is neutral in nature i.e. q=0⇒→F=0
Therefore, it is neither deflected by electric field nor by magnetic field.
Hence, option (D) is the correct answer.