The correct option is C Passing electric current
If a magnet is heated, hammered, or dropped on the floor, its magnetism is destroyed (or it gets demagnetised). However, a magnet will not lose its properties when an electric current is passed through it.