Placement AptitudeHardCAT · Infosys SP
How many functions f from {1, 2, 3, 4} to {1, 2, …, 6} satisfy f(1) ≤ f(2) ≤ f(3) ≤ f(4)?
- A. 15
- B. 126
- C. 210
- D. 84
Correct answer: B. 126
A non-decreasing function is a choice of 4 values from 6 with repetition allowed: C(6 + 4 − 1, 4) = C(9, 4) = 126. 15 = C(6, 4) counts only strictly increasing ones.
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 subsets of {1, 2, …, 10}, including the empty set, contain no two consecutive numbers?
- In how many ways can a 2 × 8 strip be completely covered with eight 1 × 2 tiles (each tile placed horizontally or vertically)?
- In an election, Asha gets 7 votes and Bimal gets 4. The 11 ballots are counted one by one in a random order. What is the probability that…
- Two different squares are chosen at random on an 8 × 8 chessboard. What is the probability that they share a side?
- Two queens are placed on two different squares of an 8 × 8 chessboard at random. What is the probability that they attack each other (same…
- Five people get into a lift on the ground floor of a building with 7 upper floors. Each gets off at one of the 7 floors at random…