difference between a solenoid and electromagnet:
An electromagnet is an electrically induced magnet surrounded by a coil of wire through which an electric current is passed to magnetise the core.
 A solenoid is a cylindrical coil of wire acting as a magnet when carrying an electric current.