Mathematics (JEE)ModerateISI entrance

How many binary strings of length 8 contain at most two 1s?

  1. A. 37
  2. B. 45
  3. C. 36
  4. 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.

More Permutations, Combinations and Probability questions

Exams that ask this topic