The correct choice is
a solenoid
a solenoid is a sequence of a number of loops in the form of a helix in which when current flows, a magnetic field is produced along the axis of the solenoid. The magnetic field thus produced by a solenoid is given as
B = μ₀ n i
where B = magnetic field , n = number of turns per unit length, i = current in the solenoid.