Answer should be atleast or at most how to decide?

The Gateway to Computer Science Excellence

+2 votes

While unit testing a module, it is found that for a set of test data, maximum 90% of the code alone were tested with a probability of success 0.9. The reliability of the module is

- at least greater than 0.9
- equal to 0.9
- at most 0.81
- at least 1/0.81

+3 votes

Best answer

0 votes

Software Reliability is the probability of failure-free software operation for a specified period of time in a specified environment.

90 % of the code has probability of success as .9.

Let we have 2 blocks one is of 90% of unit and other is of 10%. Let first and second block both has .9 reliability then total reliability is .9*.9=.81.

Since 2nd block will have reliability always less than .9 (given) hence total reliability will be (.9*(no less than .9) hence it will be atmost .81.

90 % of the code has probability of success as .9.

Let we have 2 blocks one is of 90% of unit and other is of 10%. Let first and second block both has .9 reliability then total reliability is .9*.9=.81.

Since 2nd block will have reliability always less than .9 (given) hence total reliability will be (.9*(no less than .9) hence it will be atmost .81.

+1

Can't we look it in the below fashion:

With dividing the code in two blocks say 90% and 10 % of code,

total reliability = success of 1st block + success of 2nd block

= 0.9*0.9 + (any success %)*0.1

in any case the total reliability will be atleast 0.81?

Just trying to approach the solution in different way, please comment if I am doing anything wrong.

With dividing the code in two blocks say 90% and 10 % of code,

total reliability = success of 1st block + success of 2nd block

= 0.9*0.9 + (any success %)*0.1

in any case the total reliability will be atleast 0.81?

Just trying to approach the solution in different way, please comment if I am doing anything wrong.

52,345 questions

60,471 answers

201,797 comments

95,273 users