The depth of an ocean is determined with the help of SONAR.
Sonar uses ultrasonic waves to detect and locate objects under water.
Ultrasonic waves produced from the transmitter kept in a ship are directed towards the ocean floor.
The ocean floor reflects these waves.
By measuring the time interval t between the generation of the wave and reception of the echo, we calculate the depth of the ocean by using the relation
S = (v x t)/2 Where v is the velocity of ultrasonic waves.