Solution to A computer randomly chooses a binary string of length 6. What is the probability that … - Sikademy
Author Image

Archangel Macsika

A computer randomly chooses a binary string of length 6. What is the probability that exactly two characters in the string turn out to be 1s?

The Answer to the Question
is below this banner.

Can't find a solution anywhere?

NEED A FAST ANSWER TO ANY QUESTION OR ASSIGNMENT?

Get the Answers Now!

You will get a detailed answer to your question or assignment in the shortest time possible.

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 P_6(2,4)=\frac{6!}{2!4!}=\frac{6\cdot 5}{2}=15 such strings. Taking into account that the total number of strings of length 6 is equal to 2^6=64, we conclude that the probability p that exactly two characters in the string turn out to be 1s is p=\frac{15}{64}.


Related Answers

Was this answer helpful?

Join our Community to stay in the know

Get updates for similar and other helpful Answers

Question ID: mtid-5-stid-8-sqid-787-qpid-672