Placement AptitudeModerateInfosys · Wipro
A vending machine accepts ₹1, ₹2, ₹5 and ₹10 coins, and a customer has plenty of each. How many different collections of exactly 5 coins can she put in, if only the number of coins of each value matters?
- A. 1024
- B. 56
- C. 126
- D. 625
Correct answer: B. 56
Counting c₁ + c₂ + c₅ + c₁₀ = 5 in non-negative integers: (5 + 3)C3 = 56. 1024 = 4⁵ counts ordered sequences of coins; 126 = 9C4 mixes up the two numbers in the stars-and-bars formula.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- A 3-digit number (100 to 999) is chosen at random. What is the probability that exactly one of its digits is 7?
- In how many arrangements of the letters of MISSISSIPPI are no two S's next to each other?
- The numbers 1 to 8 are arranged in a row at random. What is the probability that the odd numbers appear in increasing order and the even…
- Meera takes the bus on 2/3 of days and walks on the rest. She is late on 1/4 of the days she takes the bus and on 1/10 of the days she…
- A fair coin is tossed until both a head and a tail have appeared. What is the expected number of tosses?
- Three fair dice are rolled. What is the probability that the total is at most 5?