Mathematics (JEE)HardGATE CS
How many binary strings of length 7 contain exactly two 1s, with no two 1s adjacent?
- A. 15
- B. 21
- C. 10
- D. 20
Correct answer: A. 15
Choose 2 non-adjacent positions among 7 in C(6,2) = 15 ways (the enumeration gives 15). Option 21 is C(7,2), which ignores the non-adjacency condition.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many lattice paths go from (0, 0, 0) to (2, 2, 2) using unit steps in the positive x, y or z direction, avoiding the point (1, 1, 1)?
- How many functions from {1, 2, 3, 4, 5} to {1, 2, 3} have an image with exactly 2 elements?
- How many 3-element subsets of {1, 2, …, 9} have sum equal to 15?
- Three fair dice are rolled. What is the probability that their total is 7?
- Two specific people A and B are seated in a row of 6 people in a random order. What is the probability that exactly two people sit between…
- Four distinct sweets are given to two children, with each child receiving at least one sweet. In how many ways can this be done?