Answer : Temporary magnets are made out of soft metals that retain their magnetism only when they are near a permanent magnetic field or an electrical current. In the presence of a magnetic field, they become magnetised. Paperclips, iron nails, and other similar things are examples of temporary magnets.
An electromagnet is another sort of transient magnet that only retains magnetism when an electrical current is passed through it.
Electromagnets are formed of coil wire with an iron core and are available in a wide range of strengths and polarities. Simple and complex objects, such as doorbells and motors, use electromagnets.