1 The direction of the magnetic field and the poles of a solenoid depend on the direction of current flow.
“if the current is going downwards the north pole will be in this direction. The field is going upwards the south pole will be here. Then if the current switches direction the poles will also be reversed.”