Potentiometer is used to:

All of these

Compare emf of two cells.

Measure P.D.

Detect internal resistance of cells.