Final answer:
The magnetic field at point P from the horizontal wire segment is zero, while the magnetic field from the half circular part is µi/2r, with the direction being out of the page.
Step-by-step explanation:
The magnitude of the magnetic field at point P created by the horizontal stretch of wire is zero as the field at the center of a symmetric arrangement cancels itself out in the idealized case of an infinitely long wire. For the half circular part, we can use Ampere's Law or Biot-Savart Law to derive the magnetic field created by a current-carrying arc. The formula for the magnetic field at the center of a circular loop of radius r carrying current i is µ₀i/2r.
The direction of the magnetic field at point P created by the horizontal wire is none as it is cancelled out. However, the magnetic field direction at P due to the half circular part is out of the page, determined by the right-hand rule where the thumb points in the direction of the current and the fingers curl in the direction of the magnetic field.