Will the compass needle show deflection when the switch in the circuit shown by figure is closed?
No.
The given circuit does not have any current source. In the absence of current, the wire does not behave as a magnet and hence, the compass needle will not show any deflection.