Potentiometer is used to:

Detect internal resistance of cells.

Compare emf of two cells.

All of these

Measure P.D.