A magnetic field is created ____________.
a. when a compass is placed next to a wire.
b. when an electric current flows through a wire.
c. when wire is wrapped around an iron core.
d. when wire is twisted into a loop.