Placement AptitudeVery hardCAT · TCS NQT

How many 4-digit numbers (1000 to 9999) use exactly two different digits, such as 3383 or 7000?

  1. A. 630
  2. B. 567
  3. C. 504
  4. D. 576

Correct answer: B. 567

Two non-zero digits: 9C2 = 36 pairs, each giving 2⁴ − 2 = 14 strings: 504. A non-zero digit a with 0: a must lead, and the other 3 places use a or 0 but not all a: 2³ − 1 = 7, so 9 × 7 = 63. Total 567. 630 ignores the leading-zero problem; 576 allows 'aaaa' in the second case.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic