A closely wound solenoid of 800 turns and area of cross section carries a current of 3.0 A. Explain the sense in which the solenoid acts like a bar magnet. What is its associated magnetic moment?
In this case the magnetic field is generated along the axis / length of solenoid so it acts as a magnetic bar.
The magnetic moment is calculated as :-