The correct option is D Gravity - downwards
Magnetic - upwards
Analysing the forces acting upon the piece of iron bar, the force of gravity acts on it, in downward direction due to its own weight. The magnetic force exerted by the magnet on the piece of iron bar is attractive in nature. Hence, the iron bar experiences a direction of pull upwards due to the magnetic force.