Placement AptitudeHardTCS NQT Advanced · CAT
How many 5-digit numbers contain each of the digits 1, 2 and 3 at least once, using only the digits 1, 2, 3?
- A. 150
- B. 243
- C. 60
- D. 93
Correct answer: A. 150
Strings of length 5 over {1, 2, 3}: 3⁵ = 243. Remove those missing at least one digit by inclusion–exclusion: 3 × 2⁵ − 3 × 1 = 93. So 243 − 93 = 150.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- A committee of 4 is chosen from 5 men and 5 women. What is the probability that it has more women than men, given that it has at least one…
- Three of the 8 corners of a cube are chosen. How many of the resulting triangles are right-angled?
- In how many ways can 20 be written as a sum of three DIFFERENT positive integers, if the order does not matter?
- Two different cells of a 3 × 3 grid are chosen. In how many ways can they be chosen so that they do NOT share a side?
- A bug walks from one corner of a box-shaped grid to the opposite corner, moving one unit at a time in the +x, +y or +z direction, from (0…
- 10 identical candies are shared among 3 children so that each child gets an EVEN number of candies (zero allowed). In how many ways can…