The number of times the digit 5 will appear while writing the integers from 1 to 1000 is
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.
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 of the strings, so there are fives. Leading zeros add no 5s, 0 is not in the range and 1000 has no 5.
Total (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.
- Question: X receives three coins of different denominations: 1, 2, 5, 10 and 20. If the total amount received by X is m, does X receive a coin of…UPSC Prelims 2026 (CSAT) · CSAT Q1
- Question: If x and y are integers, then is x even? Statement I: x²y² is even. Statement II: 1 + x² + y² is odd.UPSC Prelims 2026 (CSAT) · CSAT Q3
- Question: X is a collection of certain odd numbers whereas Y is a collection of certain even numbers. T consists of the numbers all of which are…UPSC Prelims 2026 (CSAT) · CSAT Q4
- Question: If x, y and z are integers, each greater than 1, then is x a prime number? Statement I: xy² = 116 Statement II: xz = 261UPSC Prelims 2026 (CSAT) · CSAT Q5
- If 10ᵐ × 1000 × n = 75²⁵ × 25³² × 32⁷⁵, where n is not divisible by 10, then the value of m isUPSC Prelims 2026 (CSAT) · CSAT Q19
- What is the minimum number of times one needs to measure to get 298 litres of water from a tank, if the measuring cylinders have capacities 1 litre…UPSC Prelims 2026 (CSAT) · CSAT Q22