Step 1: Understanding the Concept
A transformer works on mutual induction. The alternating current in the primary coil produces a magnetic field that keeps changing in magnitude and direction.
Step 2: Link with the Secondary Coil
The iron core carries this changing flux through the secondary coil. By Faraday's law, a changing flux through a coil induces an e.m.f. in it.
Step 3: Compare the options
The core only guides the flux, the heat is a loss, and the electric field is not the cause. The induced e.m.f. is due to the varying magnetic field.
Final Answer:
The e.m.f. in the secondary coil is mainly due to the varying magnetic field.
\[ \boxed{\text{(B) }\text{varying magnetic field}} \]