Potentiometer is used to:

All of these

Measure P.D.

Detect internal resistance of cells.

Compare emf of two cells.