(A)

Here net magnetic field will be sum of magnetic field due to straight wires ab,de and due to loop bcd.
So, Bab=4πμ0rI=Bde (directed out of the plane in both cases)
Bbcd=4πμ0rI(2π) (in the plane)
Thus, magnetic field at O is
BO=−4πμ0rI+4πμ0rI(2π)−4πμ0rI
BO=2πμ0rI(π−1) (III)
(B)

Here net magnetic field will be sum of magnetic field due to straight wires ab,de and semicircular arc bcd.
Bab=4πμ0rI=Bde (directed out of the plane in both cases)
Bbcd=4πμ0rI(π) (out of the plane)
Thus, net magnetic field at O is
BO=4πμ0rI+4πμ0rI(π)+4πμ0rI
B0=4πμ0rI(π+2) (I)
(C)

Here net magnetic field will be sum of magnetic field due to straight wires ab,de and due to loop bcd.
Bab=4πμ0rI (directed in the plane)
Bbcd=4πμ0rI(π) (in the plane)
Bde=0 (passing through the axis)
Thus, magnetic field at O is
BO=4πμ0rI(π+1) (IV)
(D)

Here net magnetic field will be sum of magnetic field due to straight wires ab,de and due to loop bcd.
Bab=0=Bde (passing through the axis)
Bbcd=4πμ0rI(π) (out of the plane)
Thus, magnetic field at O is
BO=4rμ0I (II).
A-III, B-I, C-IV, D-II