Answer the question given below:
 
How does a current-carrying conductor behave like a magnet?
 
A current-carrying conductor generates a through it
 
This magnetic field can and affect nearby magnetic materials.