Mathematics (JEE)Very hardGATE CS
How many binary strings of length 8 contain exactly four 1s and no three consecutive 1s?
- A. 20
- B. 45
- C. 42
- D. 56
Correct answer: B. 45
Enumerating the C(8,4) = 70 strings with four 1s and discarding those with 111 gives 45. Option 56 ignores the restriction on runs of 1s.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many 4 × 4 binary matrices have exactly one 1 in each row and in each column?
- Two distinct numbers are chosen at random from {1, 2, …, 10}. What is the probability that both numbers are prime?
- A 3-letter word is formed from distinct letters of {A, B, C, D, E}, where the first letter is not A. How many such words are there?
- A fair die is rolled repeatedly. What is the expected number of rolls until a 1 or a 2 first appears?
- Two cards are drawn without replacement from a standard 52-card pack. What is the probability that both cards have the same suit?
- How many functions from {1, 2, 3, 4, 5} to {1, 2, 3, 4} have every value of the codomain hit at most twice (no value is the image of three…