Skip to content
dronacharya.ai
UPSC Prelims 2019AptitudeSingle correct+2.5 / -0.83

UPSC Prelims 2019 CSAT Q9: Number system and divisibility

From the UPSC Prelims 2019 · CSAT (GS Paper II) paper. Try it, check your answer, then read the worked solution below.

The number of times the digit 5 will appear while writing the integers from 1 to 1000 is

Choose one option

Answer and worked solution

Try it yourself first, then check your working against this.

Official answerC

Worked solution

Count the 5s in 000-999 (written with three digits): each of the three positions takes the value 5 in exactly 100100 of the 10001000 strings, so there are 3×100=3003\times100=300 fives. Leading zeros add no 5s, 0 is not in the range and 1000 has no 5.

Total =300=300 (checked by brute force).

(C)

Concepts used: counting digits

Practise this topic

Every past question tagged to the same part of the syllabus, with solutions.

Similar questions from other papers

Past questions on the same topic (Number system and divisibility), each with a worked solution.