Mathematics (JEE)ModerateGATE CS
How many binary strings of length 6 consist of exactly two runs (maximal blocks of equal digits)?
- A. 6
- B. 5
- C. 12
- D. 10
Correct answer: D. 10
Choose the first digit in 2 ways and the place to cut the string among the 5 gaps: 2 × 5 = 10. Option 12 double-counts the choice of the first digit.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many binary strings of length 7 contain exactly two 1s, with no two 1s adjacent?
- 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…