The correct option is A the slope of the curve from r=0 to r=R is a straight line with slope being proportional to density of the object
The field is found to be linearly proportional to the distance until r=R and is given by g=GMx/R3.
For r=0 to r=R, g varies as a straight line.
Substituting M=ρ(4πR3)/3 in the expression for g, we get, g=Gx4πρ/3⟹(g/x)=4Gπρ/3.
We also know that G/x gives the slope of the straight line.
Hence slope is proportional to the density of the object
The correct option is (a)