Final answer:
An electric current can be produced in a wire lying within a magnetic field if the magnetic field is moving.
Step-by-step explanation:
If a wire lies within a magnetic field, an electric current can be produced in the wire. In order for this to happen, the magnetic field must be moving. When a magnetic field moves across a wire, it creates a changing magnetic flux, which induces an electric current in the wire. This is known as electromagnetic induction.
Learn more about Electromagnetic induction