Solution:
Concept: Every source of magnetic field has its own pattern of field lines. Straight, parallel, equally spaced lines show a uniform field; concentric circles show the field of a straight current-carrying wire seen in a plane at right angles to it; and lines that come out of one face and spread out show the field of a current loop, whose face acts as a pole.
(a)
Step 1 — Uniform field.
Pattern D has straight, parallel and equally spaced lines, so the field has the same strength and direction everywhere. It shows a uniform magnetic field.
(b)
Step 2 — Straight current-carrying wire.
Pattern A has concentric circles round a common centre. This is the field of a straight current-carrying wire, seen in a plane at right angles to the wire, with the wire at the centre.
(c)
Step 3 — Current in a loop.
Pattern B has lines that come out of one side and spread out, as the field lines do when they leave the face of a current-carrying loop, which acts as a pole. Pattern C, with lines coming in from every direction to a single point, is not the field of any of these sources.
Watch out: Concentric circles belong to a straight wire, not to a loop.
Therefore, (a) pattern D shows a uniform field, (b) pattern A is for a straight current-carrying wire, and (c) pattern B is for the current in a loop.