If an iron bar is placed near a bar magnet then opposite pole appear on an iron bar at near end to bar magnet and similar pole appears on the iron bar at the farther end to the bar magnet.
The diagram shows a small magnet placed near a solenoid AB with its north pole N near the end A. Current is switched on in the solenoid by pressing the key K. (a) State the polarity at the ends A and B. (b) Will the magnet be attracted or repelled? Give a reason for your answer.