Mathematics (JEE)HardTCS NQT · Accenture
How many strings of length 6 over the alphabet {0, 1, 2} contain exactly two 0s, with the two 0s not in adjacent positions?
- A. 240
- B. 320
- C. 160
- D. 80
Correct answer: C. 160
Non-adjacent positions for two 0s among 6 can be chosen in C(5,2) = 10 ways; each of the other 4 positions holds 1 or 2, giving 10 * 2^4 = 160.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many 4-digit strings have four distinct digits chosen from {1, 2, 3, 4, 5, 6} and an even digit sum?
- How many necklaces of 6 beads can be made using black and white beads with exactly 2 black beads? Rotations identify necklaces…
- In how many ways can {1, 2, 3, 4, 5, 6} be split into two unordered blocks, each of size 3?
- How many strings of length 5 over {1, 2, 3} have every pair of adjacent symbols differing by at most 1?
- How many permutations of {1, 2, 3, 4, 5, 6} have exactly two descents, that is, exactly two positions i with p(i) > p(i+1)?
- How many permutations of {1, 2, 3, 4, 5, 6} have exactly 3 cycles in their cycle decomposition (fixed points count as cycles)?