Correct Answer - Option 3 : 271
Calculation:
Total numbers having 5 as a digit from 0 - 49 = 5
Total numbers having 5 as a digit from 50 - 59 = 10
Total numbers having 5 as a digit from 60 - 99 = 4
Total number having 5 as a digit from 0 - 99 = 19 ----(i)
Similarly, Total numbers having 5 as a digit from 100 - 499 = 19 × 4 = 76 ----(ii)
Total number having 5 as a digit from 500 - 599 = 100 ----(iii)
Similarly, Total numbers having 5 as a digit from 600 - 999 = 19 × 4 = 76 ----(iv)
From (i), (ii), (iii) and (iv) we get
∴ Whole numbers between 0 and 999 contain the digit ‘5’ = 19 + 76 + 100 + 76
⇒ 271.