The Answer to the Question
is below this banner.
Here's the Solution to this Question
Let us use the formula for number of permutation with repetitions to find all strings of length 6 that exactly two characters in the strings turn out to be 1s. It follows that there are such strings. Taking into account that the total number of strings of length 6 is equal to we conclude that the probability that exactly two characters in the string turn out to be 1s is