The correct answer to the question is : B) The masses of the objects and the distance between them.
EXPLANATION :
Before going to answer this question, first we have to understand Newton's law of gravitation.
As per Newton's law of gravitation, everybody in the universe attracts every other body with a force called gravitational force or force of gravity which is directly proportional to the product of masses of the two bodies, and inversely proportional to the square of separation distance between them.
Let us consider two bodies of masses M and M' which are separated by a distance R.
The gravitational force acting between them is calculated as -
Gravitational force

Here, G is known as universal gravitational force constant.
From above, we see that force of gravity depends on the masses of the objects and the distance between them.