The magnetic field at P due to segments AB and EF are zero,
due to segments BC and DE are 4πrμ0I(sin45∘)⊗
each and due to segment CD is 4πrμ0I(sin45∘+sin45∘)⊗,
where r=1cm.
Net magnetic field =4πrμ0I[2×sin45∘+2×sin45∘] =10−210−7×(1/2)×22 =2×10−5T ∴k=2