Step-by-step explanation:
Answer. Due to stroking the piece of steel, the domains which are randomly arranged get aligned in the direction of stroking by the magnet. Due to this alignment of the domains, the piece of steel attains magnetic properties.