A wire carrying current i is shaped as shown. Section AB is a quarter circle of radius r and current is flowing from A to B. The magnetic field is directed
Using Right hand palm rule or Maxwell's Cork screw rule, we get the field to be perpendicular to the plane of the paper and directed into it.