Potentiometer is used to:

Measure P.D.

Detect internal resistance of cells.

Compare emf of two cells.

All of these