They are inversely proportional to the square of the distance.
Step-by-step explanation:
The magnitude of the gravitational force between two objects is given by

where G is the gravitational constant, m1 and m2 are the masses of the two objects, and r is the distance between the two objects.
The magnitude of the electrical force between two objects is given by

where k is the Coulomb's constant, q1 and q2 are the charges of the two objects, and r is the distance between the two objects.
In both cases, we see that the magnitude of the force is iinversely proportional to the square of the distance,
, so the correct option is
They are inversely proportional to the square of the distance.