Suppose an untested program was determined to contain 640 bugs. Three different testing techniques were applied to test the code. Each testing technique is effective to detect 50% of the bugs that exist before the concerned testing technique is applied. While fixing a bug after the application of a test strategy, there is a 50% chance of creating another bug. How many bugs would exist in the code after the three testing and bug-fix cycles have been carried out?
Answers
Answered by
6
We can use basic mathematics to solve this,
Given-
Initial bugs 640
final bugs ?
effectiveness of finding bugs 50%
error caused after testing 50%
Solution-
a ) Before 1st testing
Total bugs = 640
Corrected bugs = 50% = 320
Now bugs = 640-320 = 320
Newly formed bugs = 50% = 160
Now bugs = 320+160= 480
b ) Before 2nd testing
Total bugs = 480
Corrected bugs = 50% = 240
Now bugs = 640-320 = 240
Newly formed bugs = 50% = 120
Now bugs = 320+160= 360
c ) Before 3rd testing
Total bugs = 360
Corrected bugs = 50% = 180
Now bugs = 640-320 = 180
Newly formed bugs = 50% = 90
Now bugs = 320+160= 270
Finally total bugs after 3 testings will be 270.
Best Luck...
Answered by
1
Answer:120
Step-by-step explanation:
Similar questions