Concept:The polarity of an electromagnet is determined by the direction of current and the winding of the coil using the right-hand grip rule.
Explanation:Using the right-hand grip rule, curl the fingers of your right hand in the direction of the current around the coil.
Your thumb then points toward the north pole of the electromagnet.
When the current flows from A to B, the starting end A becomes the south pole and the terminating end B becomes the north pole.
So the polarity of the electromagnet is
A=S and
B=N.
Therefore, the end A is a south pole when current flows from A to B.
Answer:B. when the current flows from A to B, the end A will be south pole.