Answer:
B.
resistor
Step-by-step explanation:
When the current passes through the filament of the light bulb, due to the resistance, the filament gets heated up.
This heating of the filament causes the emission of light from the light bulb.
In order to avoid oxidization of filament or for the emission of different colors, inert gases are filled in the bulb.
Thus, the light bulb act as a resistor in a circuit, transforming electrical energy into light and heat.
Hence, option B is the correct answer.