Viscosity in liquids is due to

Intermolecular force

Frictional force between molecules

Repulsive force between molecules

Gravitational force