The correct option is B Electromagnet
The crane has to lift magnetic materials during which the object should act as a magnet. But, while dumping it should lose its magnetic properties. So, the crane uses an electromagnet. When the current is switched on, the material becomes an electromagnet and when the current is switched off, the electromagnet returns to become a regular metal.