The process by which the screws become magnets is called magnetic induction. This same process is the reason why magnets attract non - magnetized magnetic substances such as the screw. The screw becomes an induced magnet with the end nearer the magnet having an opposite polarity to that of the permagnet. Hence the attraction happens after magnetic induction occurs.