Placement AptitudeVery hardProduct company OA · CAT level

A 6-character code is made from the letters A, B, C and D (letters may repeat). How many codes contain each of A, B and C at least once? (D may or may not appear.)

  1. A. 1560
  2. B. 2100
  3. C. 2160
  4. D. 1920

Correct answer: B. 2100

Inclusion–exclusion over the letters that are missing among A, B, C: 4⁶ − 3·3⁶ + 3·2⁶ − 1⁶ = 4096 − 2187 + 192 − 1 = 2100. 1560 counts codes using all four letters (D forced too).

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic