Placement AptitudeHardCAT · Goldman Sachs OA
How many functions from a set of 6 elements onto a set of 3 elements are there (every element of the 3-element set is used)?
- A. 729
- B. 90
- C. 537
- D. 540
Correct answer: D. 540
Inclusion–exclusion: 3⁶ − C(3, 1)2⁶ + C(3, 2)1⁶ = 729 − 192 + 3 = 540. 537 forgets to add back the 3.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- 5 different balls are put into 3 different boxes (any box may get any number). In how many ways does box 1 end up with exactly 2 balls?
- A 5-letter string is formed by choosing each letter at random from A to Z (repetition allowed). What is the probability that it reads the…
- How many 5-digit palindromes (numbers like 12321 that read the same both ways) are divisible by 3?
- Each of the four entries of a 2 × 2 matrix is chosen to be 0 or 1 at random (independently, equally likely). What is the probability that…
- How many different selections of 3 letters can be made from the letters of the word ASSASSINATION?
- 10 people stand in a row in random order. What is the probability that Arjun and Bela have exactly 3 people standing between them?