(a)-(iii),
XX′ has linear shape as only two atoms are present.
(b)−(i),
XX′3 has T-shaped as 3 bond pairs and 2 lone pairs of electrons are present. The electron pair geometry is trigonal bipyramidal.
(c)−(iv),
XX′5 has square pyramidal shape as 5 bond pairs and 1 lone pair of electrons are present. The electron pair geometry is octahedral.
(d)−(ii)
XX′7 has pentagonal bipyramidal shape as 7 bond pairs and 0 lone pairs of electrons are present.
Hence, option (B) is the correct answer.