GATE 2017 CS (CS1) – Question 5
The probability that a $k$-digit number does NOT contain the digits 0, 5, or 9 is
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (C) $0.7^k$
Explanation
The allowed digits are 1,2,3,4,6,7,8: seven possibilities. If the model is a length-k string of independent uniformly chosen decimal digits, all ten digits are available at every position before the restriction. Its probability is therefore $(7/10)^k=0.7^k$, the official **C**.
The wording “k-digit number” has a different literal sample space: its first digit cannot be zero. Uniformly choosing a genuine positive k-digit integer gives $9\cdot10^{k-1}$ possible numbers and $7^k$ favorable numbers, hence
$$P=\frac{7^k}{9\cdot10^{k-1}}=\frac79(0.7)^{k-1}.$$
For example, k=1 gives 7/9, not 0.7. The official answer uses the digit-string convention; that distinction is retained explicitly rather than treating the leading digit as unrestricted without explanation.
More Quantitative Aptitude: Probability, Statistics and Combinatorics questions
- GATE 2017 CS (CS1) Q9
- GATE 2017 EC Q9
- GATE 2025 ME Q5
- GATE 2025 ME Q10
- GATE 2025 AR — Architecture Q5
- GATE 2025 AR — Architecture Q10
All Quantitative Aptitude: Probability, Statistics and Combinatorics questions →