Point out two ways in which a magnet can be demagnetized.
1.Heating the magnet to a high temperature.2.Passing an alternate current around the magnet.