Placement AptitudeVery hardTCS NQT · Capgemini

In how many ways can 5 distinct balls be placed in 3 distinct boxes so that no box is empty?

  1. A. 243
  2. B. 147
  3. C. 150
  4. D. 180

Correct answer: C. 150

Surjections: 3^5 - 3 x 2^5 + 3 x 1 = 243 - 96 + 3 = 150.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic