Topic: Discrete Mathematics / Combinatorics
The number of bit strings of length 10 that contain exactly four 1s is
- A. 210
- B. 5040
- C. 24
- D. 10
Answer: A. 210
Explanation: This is a basic combinations problem. You need to choose exactly 4 positions out of 10 to place the '1's. The number of ways to do this is given by "10 choose 4" ($C(10, 4)$). $C(10, 4) = \frac{10!}{4! (10-4)!} = \frac{10 \times 9 \times 8 \times 7}{4 \times 3 \times 2 \times 1} = \frac{5040}{24} = 210$.