(d) The acceleration due to gravity at a depth $d$ inside the earth is
$g^{'} = g\left( 1 - \frac{d}{R} \right) = g\left( \frac{R - d}{R} \right) = g\frac{r}{R}$
where, $R - d = r =$ distance of a place from the centre of earth, therefore, $g^{'} \propto r$