Placement AptitudeHardTCS NQT Advanced · CAT

How many positive integers less than 1000 have digits that add up to 5?

  1. A. 15
  2. B. 35
  3. C. 20
  4. D. 21

Correct answer: D. 21

Write each number as a 3-digit string with leading zeros: a + b + c = 5 with digits 0–9 (no limit binds), C(7, 2) = 21 solutions, and 000 is not among them.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic