Answer
The nail will become an electromagnet.
Explanation
When the switched is closed , a current will flow in the insulated wire. Then the current flows through the coil around the iron nail, it will induce am magnetic filed inside the nail. The nail becomes a magnet because it is made of magnetic material. As long as there is current flowing through the current, there nail will remain a magnet.