Combinatorics & Counting

Your answer
Answer & solution
Answer: A (no official key was published)
First place the n zeros in their fixed order. They create n+1 gaps: before the first zero, between consecutive zeros, and after the last zero. A valid string uses at most one 1 in each gap, otherwise two ones would be adjacent. Choose exactly k of those gaps, giving C(n+1,k). Conversely every such choice creates one valid string, so this is a bijection rather than merely an upper bound. When k>n+1 the count is zero.