Mathematics (JEE)Very hardCAT · MBA placement
How many strings of length 5 over {x, y} have exactly three x's and never contain three consecutive x's?
- A. 6
- B. 7
- C. 4
- D. 8
Correct answer: B. 7
Enumerating the C(5,3) = 10 strings with three x's, and excluding those containing xxx, gives 7. Option 10 counts strings without the restriction.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many ways can 3 distinct balls be placed in 4 distinct boxes so that no box holds more than one ball?
- How many pairs of people can be chosen from 6 couples (12 people) such that the two people are not married to each other?
- How many 5-digit palindromes are there?
- How many integers from 1 to 100 are divisible by neither 2 nor 5?
- How many 3-letter words over {a, b} are not palindromes?
- A path has 5 edges in a row. How many ways are there to choose 2 edges that do not share an endpoint (are not adjacent)?