1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
VashaNatasha [74]
3 years ago
5

A computer program contains one error. In order to find the error, we split the program into 6 blocks and test two of them, sele

cted at random. Let X be the number of errors in these blocks. Compute E(X).
Mathematics
1 answer:
Aleksandr-060686 [28]3 years ago
7 0
There are \dbinom62 ways of selecting two of the six blocks at random. The probability that one of them contains an error is

\dfrac{\dbinom11\dbinom51}{\dbinom62}=\dfrac5{15}=\dfrac13

So X has probability mass function

f_X(x)=\begin{cases}\dfrac13&\text{for }x=1\\\\\dfrac23&\text{for }x=0\end{cases}

These are the only two cases since there is only one error known to exist in the code; any two blocks of code chosen at random must either contain the error or not.

The expected value of finding an error is then

\displaystyle\sum_{x=0}^1xf_X(x)=0\times\dfrac23+1\times\dfrac13=\dfrac13
You might be interested in
12 + 3x - 7 = 7x = 7 - 4x<br><br><br> a. always<br> b. sometimes<br> c. never
Rasek [7]
I think the answer is sometimes or never.

7 0
4 years ago
PLEASEEE HELP ASAPPP PRETTY PLEASE Which expressions are equivalent to 6 ^16 Check all that apply. (answer choices are in the pi
LenaWriter [7]

The expressions that are equivalent to 6^16 is the 3rd option, and the last option.

Hope this Helps!! :D

Mark Brainliest!!

4 0
3 years ago
The diameter of a human hair is 9x10^-5 meters. The diameter of a spider's silk is 3x10^-6 meters. How much greater is the diame
dmitriy555 [2]

Answer:

3×10¹

Step-by-step explanation:

(9×10⁻⁵ m) / (3×10⁻⁶ m)

(9/3) (10⁻⁵ / 10⁻⁶)

3×10¹

3 1
3 years ago
Read 2 more answers
1) A medium cookies and creme milkshake at The
Leya [2.2K]

Answer:

You will pay $4.31

Step-by-step explanation:

I know this because a fourth of $5.75 is 1.4375 so you would  round it to $1.44 and then $5.75 - $1.44 is $4.31.

So you will pay $4.31 for one milkshake.

5 0
3 years ago
Whether zeroes of quadratic polynomial and roots of quadratic equation are same? Pls help me....
Neko [114]

Answer:

Step-by-step explanation:

Yes, these are the same. In both cases, you start with a polynomial that looks like y = ax^2+bx+c, and the zeroes/roots are the values of x which make the value of y zero.

5 0
3 years ago
Other questions:
  • The price of a certain painting increased by 20% during the first year and decreased by 15% during the second year. The price of
    8·1 answer
  • How much money will Charlie in 2013
    15·1 answer
  • a cook has 2 2/3 cup of flour. a recipe calls for 2 3/4 cups of flour. does the cook have enough flour? if not, how much more fl
    14·1 answer
  • In parallelogram ABCD, AE and CF are perpendicular to diagonal BD, and EF = 10 cm. If BD = 28 cm, then how long are DE and BF? (
    9·2 answers
  • Evaluate the following expression:
    6·1 answer
  • - 2 - I what is the absolute value of each number
    7·1 answer
  • A truck has a force of 2000 newtons and is moving 10 miles per hour. How much mass does the truck have?
    9·2 answers
  • Michelle, lori, and patti buy lunch together. The total bill was $45. If michelle pays 35% of the total bill and lori pays 48% o
    14·2 answers
  • I need help with this fast
    10·2 answers
  • 25 points!!! And brainliest!!! In an archery competition, one of the targets is created using round board with congruent square
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!