Solution:
The direction of the magnetic field will be into the plane of the paper at point P and out of the plane of the paper at point Q.By applying Maxwell's right-hand thumb rule, the direction of the magnetic field will come out to be anti-clockwise around the current-carrying wire. So, at point P, the magnetic field will be in the plane of the paper, and at point Q, the direction of the magnetic field will be out of the plane of the paper.