The correct option is D magnetic effect
When the free ends of a tester are dipped into a solution, the circuit gets complete and current starts to flow in wires.The magnetic needle shows deflection due to magnetic effect of current which states that an electric current is always associated with magnetic field around it.Due to this magnetism the needle is deflected.