Step-by-step explanation:
The direction of magnetic field for a current carrying wire is given by using Maxwell’s right hand grip rule or the right handed corkscrew rule. According to this rule, if the thumb of our right hand shows the direction of electric current, then the direction of magnetic field is given by using curled finger.
Here, the current in a wire is flowing in right side. Using the above rule, the direction of magnetic field is is outwards to the plane of paper. It circles around the wire that go in at the bottom.