Placement AptitudeModerateTCS NQT · Accenture

A man has 5 keys, exactly one of which opens a lock. He tries them one by one at random, never trying a key twice. What is the expected number of tries needed to open the lock?

  1. A. 5
  2. B. 5/2
  3. C. 3
  4. D. 4

Correct answer: C. 3

The right key is equally likely to be in any of the 5 positions of his random order, so the number of tries is uniform on 1 to 5: E = (1 + 2 + 3 + 4 + 5)/5 = 3. Trying with replacement would give 5.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic