Placement AptitudeHardTCS Digital · Infosys SP · CAT
How many functions from a 6-element set onto (surjective to) a 4-element set exist?
- A. 4096
- B. 1560
- C. 1440
- D. 1296
Correct answer: B. 1560
Inclusion-exclusion: 4⁶ - 4·3⁶ + 6·2⁶ - 4·1⁶ = 4096 - 2916 + 384 - 4 = 1560.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- How many positive integers not exceeding 1000 have digit sum exactly 10?
- In how many ways can 12 different people be divided into three unlabelled groups of sizes 6, 3 and 3?
- How many distinct arrangements of the letters of BANANA have no two A's next to each other?
- In how many ways can 6 different books be arranged in a row on a shelf?
- At a reunion every person shakes hands exactly once with every other person. If 10 people attend, how many handshakes take place?
- Two fair dice are thrown together. What is the probability that the sum of the numbers shown is 7?