Placement AptitudeVery hardTCS NQT · Infosys

A 6-digit locker code (digits 0–9, leading 0 allowed) uses exactly two different digits, each appearing exactly three times, such as 727277. How many such codes are there?

  1. A. 1800
  2. B. 900
  3. C. 450
  4. D. 2790

Correct answer: B. 900

Choose the two digits: 10C2 = 45; choose the 3 places for the smaller one: 6C3 = 20. Total 900. 1800 picks the digits as an ordered pair (double counting); 2790 = 45 × (2⁶ − 2) allows any split, not 3 and 3.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic