Due to the solid sphere of a uniform density, gravitational field is zero at the centre of the sphere. The cavities A and B can be treated as negative masses and they are situated on opposite sides of the centre O. Hence, gravitational forces exerted by the cavity masses on a mass at O are opposite in direction. Hence, resultant force on mass at O is zero. Thus, gravitational force due to this object at the origin O is zero.
Consider a circle y2 + z2 = 36; the centre of the circle is (0,0,0) and the radius of the circle is 6 units. The circle lies in y-z plane. For the point outside the sphere or situated at the sphere, the mass of the sphere can be assumed to be situated at the centre. All the points of the circle y2 + z2= 36 are equidistant from the centre; hence, gravitational potential is same at all the points in the given circle.
Consider the circle y2 + z2 = 4; its centre lies at (0, 0, 0) and the radius is 2 units. It lies in y-z plane perpendicular to x-axis. All the points of the circle y2 + z2 = 4 are equidistant from the centre; hence, gravitational potential is same at all the points in the given circle.