(d) When switch $S$ is closed magnetic field lines passing through $Q$ increases in the direction from right to left. So, according to Lenz’s law induced current in $Q\ i.e.$ $I_{Q_{1}}$ will flow in such a direction so that the magnetic field lines due to $I_{Q_{1}}$ passes from left to right through $Q$. This is possible when $I_{Q_{1}}$ flows in anticlockwise direction as seen by $E$. Opposite is the case when switch $S$ is opened, $i.e.,\ I_{Q_{2}}$ will be clockwise as seen by $E$