The correct answer is: B. Cohesive force between molecules.
Cohesion is the force that holds together the particles of a substance. In a liquid, the cohesive force between the molecules is strong enough to cause the surface of the liquid to behave like a stretched elastic membrane. This is why water droplets form spheres, and why insects can walk on water.
Adhesive force is the force that holds together two different substances. For example, the adhesive force between water and glass is what causes water to bead up on a smooth surface.
Gravitational force is the force that attracts two objects with mass. The gravitational force between molecules in a liquid is very weak, and it has no significant effect on surface tension.
Electrical force is the force that attracts or repels two objects with electric charge. The electrical force between molecules in a liquid is also very weak, and it has no significant effect on surface tension.