Placement AptitudeHardTCS NQT · Cognizant

How many times is the digit 7 written when all the integers from 1 to 1000 are written out?

  1. A. 271
  2. B. 300
  3. C. 280
  4. D. 310

Correct answer: B. 300

Think of 000 to 999 as 3-digit strings: each of the 3 places shows 7 in exactly 100 of the 1000 strings, giving 300. Adding 1000 contributes no 7.

More Advanced Quantitative Ability (Placement) questions

Exams that ask this topic