Mathematics (JEE)HardGATE CS

How many binary strings of length 7 contain exactly two 1s, with no two 1s adjacent?

  1. A. 15
  2. B. 21
  3. C. 10
  4. D. 20

Correct answer: A. 15

Choose 2 non-adjacent positions among 7 in C(6,2) = 15 ways (the enumeration gives 15). Option 21 is C(7,2), which ignores the non-adjacency condition.

More Permutations, Combinations and Probability questions

Exams that ask this topic