Mathematics (JEE)ModerateISI entrance
How many binary strings of length 8 contain at most two 1s?
- A. 37
- B. 45
- C. 36
- D. 56
Correct answer: A. 37
Add the cases with zero, one and two 1s: C(8,0) + C(8,1) + C(8,2) = 1 + 8 + 28 = 37. Option 36 omits the all-zero string.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- The letters of MISSISSIPPI are arranged in all distinct ways. How many arrangements do NOT have all four S's together as one block?
- How many surjective functions are there from a 5-element set onto a 3-element set?
- What is the Stirling number of the second kind S(6, 3), the number of ways to partition a 6-element set into 3 non-empty unlabelled blocks?
- How many functions from {1, 2, 3, 4} to {1, 2, 3, 4} are NOT surjective?
- How many functions f from {1, 2, 3, 4, 5} to {1, 2, 3} are onto and satisfy f(1) = 1?
- How many partitions of the set {1, 2, 3, 4, 5, 6} into 3 non-empty blocks have 1 and 2 in the same block?