A computer program contains one error. In order to find the error, we split the program into 6 blocks and test two of them, selected at random. Let X be the number of errors in these blocks. Compute E(X).
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.