Solution:
Concept: Each clue gives the position, shape or nature of one of the four endocrine glands in the syllabus.
Step 1 — Clue (a).
A cap on top of each kidney is the adrenal gland ('ad' = near, 'renal' = kidney).
Step 2 — Clue (b).
The pancreas is a duct gland (pancreatic juice into the duodenum) and a ductless gland (islets secrete insulin and glucagon into the blood).
Step 3 — Clue (c).
The bilobed, butterfly-shaped gland in the neck is the thyroid gland.
Step 4 — Clue (d).
The pea-sized gland hanging below the hypothalamus is the pituitary gland.

Therefore, (a) adrenal, (b) pancreas, (c) thyroid, (d) pituitary.