Potentiometer is used to:

Detect internal resistance of cells.

Compare emf of two cells.

Measure P.D.

All of these