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.)
- A. 1560
- B. 2100
- C. 2160
- 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).
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- Four married couples sit around a round table so that men and women alternate and nobody sits next to their own spouse. Seatings that…
- A bag has 5 red and 3 blue balls. They are drawn one at a time without replacement until the bag is empty. What is the probability that at…
- Six candidates with different skill levels are interviewed in a random order. After each interview the manager updates her 'best so far'…
- A fair coin is tossed repeatedly until the pattern T, H, H (tail, head, head on three consecutive tosses) first appears. What is the…
- A fair coin is tossed until either H, T, H or H, H, T appears as three consecutive tosses. What is the probability that H, T, H appears…
- Asha has ₹3 and Bharat has ₹5. They play rounds in which Asha wins ₹1 from Bharat with probability 2/3 and loses ₹1 to him with…