Potentiometer is used to:

Detect internal resistance of cells.

Measure P.D.

Compare emf of two cells.

All of these