Mathematics (JEE)ModerateCAT · MBA placement

How many strings of length 5 over {0, 1, 2, 3, 4} contain exactly two 0s?

  1. A. 1280
  2. B. 320
  3. C. 2560
  4. D. 640

Correct answer: D. 640

Choose the two positions for the 0s in C(5,2) = 10 ways; the other three positions take values from {1, 2, 3, 4}: 4³ = 64, so 10 × 64 = 640. Option 1280 double-counts the choice of positions.

More Permutations, Combinations and Probability questions

Exams that ask this topic