Mathematics (JEE)HardGATE CS
How many strings of length 4 over {0, 1} contain no substring 010?
- A. 10
- B. 16
- C. 14
- D. 12
Correct answer: D. 12
Enumerating the 16 binary strings of length 4 and removing those with 010 at positions 1–3 or 2–4 gives 12. Option 16 ignores the forbidden pattern.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- A staircase of 7 steps is climbed by taking 1 or 2 steps at a time. How many ways are there to reach the top?
- How many 3 × 3 binary matrices have exactly one 1 in each row (and no restriction on columns)?
- A coin with probability 2/3 of heads is tossed 4 times. What is the expected number of heads?
- Three fair dice are rolled. What is the probability that their total is 10?
- A fair coin is tossed 5 times. What is the probability that the number of heads is even?
- A word of length 4 is formed by choosing each letter independently and uniformly from {a, b, c}. What is the probability that all four…