(a) 2,2-Dimethylpentane. Each of the two methyl groups needs its own locant, so "di" must be accompanied by two numbers; "2-Dimethyl" is incomplete.
(b) 2,4,7-Trimethyloctane. By the lowest-locant rule the two sets are compared term by term at the first point of difference: (2,4,7) has 4 where (2,5,7) has 5, so 2,4,7 is lower.
(c) 2-Chloro-4-methylpentane. Both directions of numbering give the locant set (2,4); when there is a tie, the lower number goes to the substituent that comes first in alphabetical order, so chloro gets 2.
(d) But-3-yn-1-ol. –OH is the principal functional group and is written as the suffix -ol with the lowest possible number (C-1); the triple bond then falls at C-3 and is shown by "-3-yn-". "But-4-ol-1-yne" wrongly gives the triple bond priority over –OH.