Learn this topic first

Skip to the questions ↓

Read this, then start. Tap a topic to open or close it.

Time and Distance
Exam weightage: HighAbout 2 questions per placement paper. Seen most in All companies. All topics

Speed is distance per hour. If you drive at 60 km/h for 2 hours, you cover 120 km. Every question is that one line: distance = speed × time.

The formula and units

Distance = speed × time. Speed = distance / time. Time = distance / speed.

km/h to m/s: multiply by 5/18. m/s to km/h: multiply by 18/5. 72 km/h = 20 m/s. 36 km/h = 10 m/s.

D = S × T
km/h × 5/18 = m/s
Because 1 km/h = 1000 m / 3600 s.
Same distance: S1 / S2 = T2 / T1
Inverse proportion.

Average speed

Average speed = total distance / total time. It is NOT the average of the speeds, unless the TIMES are equal.

For equal distances at speeds a and b: average = 2ab/(a + b).

Relative speed

Two objects moving towards each other close the gap at the SUM of their speeds. Moving in the same direction, at the DIFFERENCE.

Meeting time = gap / relative speed.

Constant distance, constant time, constant speed

Distance fixed: speed and time are inversely proportional. Speeds 3 : 4 means times 4 : 3.

Time fixed: distance is proportional to speed. Speed fixed: distance is proportional to time.

Worked exampleA car covers 180 km in 2 hours 30 minutes. What is its speed in m/s?
  1. Speed = 180 / 2.5 = 72 km/h.2 h 30 min = 2.5 h.
  2. 72 × 5/18 = 20 m/s.Convert units last.
Average of 40 and 60 is 50.
For equal distances it is 2ab/(a + b) = 48.
Mixing km/h with metres and seconds.
Convert everything first.
Problems on Trains
Exam weightage: MediumAbout 1 questions per placement paper. Seen most in TCS, Cognizant. All topics

A train is not a dot. To pass a pole it must move its whole length. To cross a platform it must move its length plus the platform's.

Pole or person vs platform or bridge

Passing a pole, a signal post or a standing person: distance = length of the train.

Crossing a platform, bridge or tunnel: distance = length of the train + length of the platform.

Two trains

Two trains passing each other cover the SUM of their lengths. Opposite directions: relative speed = sum of speeds. Same direction: difference.

Finding the train's length, and tunnels

Two situations with the same speed give the length: 'passes a pole in 15 s and a 300 m platform in 25 s' means the extra 300 m takes 10 s.

A tunnel is exactly like a platform: the train is fully out when its tail leaves, so distance = train + tunnel.

Worked exampleA train 240 m long passes a pole in 12 seconds. How long will it take to cross a platform 360 m long?
  1. Speed = 240 / 12 = 20 m/s.Passing a pole: distance = train length.
  2. Platform: distance = 240 + 360 = 600 m.
  3. 600 / 20 = 30 seconds.
Boats and Streams
Exam weightage: MediumAbout 1 questions per placement paper. Seen most in TCS, AMCAT. All topics

Rowing with the river's flow, the water carries you: you go faster. Against it, the water pushes back: you go slower.

Downstream and upstream

Boat speed in still water b, stream speed s. Downstream (with the flow) = b + s. Upstream (against) = b - s.

Going back: b = (down + up) / 2, s = (down - up) / 2.

Down = b + s, Up = b - s
b = (D + U)/2, s = (D - U)/2
Half the sum, half the difference.

Finding the stream and boat speeds

If you know the two speeds, the boat speed is the average and the stream speed is half the difference.

If you know the times for the same distance, turn them into speeds first.

Distance and time, round trips

For a round trip: time = d/(b + s) + d/(b - s). If the total time is given, solve for d.

If the upstream trip takes k times as long as the downstream trip, (b + s)/(b - s) = k.

Worked exampleA boat goes 24 km downstream in 2 hours and 12 km upstream in 2 hours. Find the boat's speed and the stream's speed.
  1. Down = 12 km/h, Up = 6 km/h.Distance / time for each.
  2. b = (12 + 6)/2 = 9. s = (12 - 6)/2 = 3.
  3. Boat 9 km/h, stream 3 km/h.