The correct answer is Gravity and position.
Potential energy typically depends on the mass of the object, the height of its position in a gravitational field, and the strength of the gravitational field. Therefore, gravity and position (height) are the factors that determine the potential energy of an object in a gravitational field.