Photons are units or packets of electromagnetic energy. They carry no charge or mass.
While, electrons are constituents of an atom that are negatively charged and associated with a certain mass. In fact, electrons in an atom can get excited when they absorb photons of characteristic energy from electromagnetic radiation.
The similarity between photons and electrons is that both can behave as particles as well as waves.
Ans B