Placement AptitudeModerateTCS NQT · Accenture pattern

In how many ways can 5 different balls be put into 3 different boxes so that no box is empty?

  1. A. 243
  2. B. 60
  3. C. 90
  4. D. 150

Correct answer: D. 150

Inclusion–exclusion: 3⁵ − 3 × 2⁵ + 3 × 1⁵ = 243 − 96 + 3 = 150. 243 allows empty boxes; 90 uses only the (3,1,1) split and misses the (2,2,1) split (60 + 90 = 150).

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic