Ans: B) semiconductor
Photovoltaic cells work by converting light energy to electrical energy. These cells are essentially made of silicon based semiconductors. When photons (light energy) strike the surface of the semiconducting material electrons are let loose. The delocalization of electron creates a flow of charge which produces electricity.
Thus, it is the semiconductor present in a photovoltaic cell which is responsible for converting light to electricity.