Mathematics (JEE)Hard

A 5-digit string is formed by choosing each digit independently and uniformly from {0, 1, 2, 3}. What is the probability that all four digits appear in the string?

  1. A. 5/16
  2. B. 1/4
  3. C. 15/64
  4. D. 3/32

Correct answer: C. 15/64

The number of strings using all four digits is 4! · S(5,4) = 24 · 10 = 240, so the probability is 240/1024 = 15/64. The value 5/16 would count strings that miss one digit.

More Permutations, Combinations and Probability questions

Exams that ask this topic