Final answer:
The relationship between force and distance for gravity and electrostatic forces is described by the inverse square law, where force is inversely proportional to the square of the distance.
Step-by-step explanation:
The relationship between force and distance, within the context of gravitational and electrostatic forces, is of the inverse square law type. This means that the force is inversely proportional to the square of the distance between two objects (Option D). Specifically, in the case of gravity, the law of universal gravitation defines the force as being proportional to the product of the two masses and inversely proportional to the square of the distance between them. For electrostatic force, Coulomb's law describes the force as being proportional to the product of the two charges and inversely proportional to the square of the distance between them.