When the switch is ‘On’ the electrolyte starts dissociating. Current remaining the same, the glow of the bulb indicates whether the electrolyte is a strong, weak or a non-electrolyte.
As NaCl is a strong electrolyte (i.e., cell A), therefore it allows large amount of electricity to flow through it. Hence, the bulb glows brightly.
Acetic acid is a weak electrolyte (i.e., cell B) and it allows a small amount of electricity to flow through them hence, the bulb glows dimly.
Sugar soln. is a non-electrolyte (i.e., cell C), therefore it does not conduct electricity and do not undergo chemical decomposition due to the flow of current through it. Hence, the bulb does not glow.