Torque is produced in a current carrying coil when it is placed in a:

Gravitational field

Nuclear field

Electric field

Magnetic field