Page 1 of 2
SOFTWARE TESTING AND MAINTENANCE
(return to the appropriate box- ECE 322 A1 – 2nd floor of DICE building)
Total: 30 points
1.For the piece of code shown below show def-clear paths.
Page 2 of 2
2. Write a function in C such that the all-uses coverage criterion produces more test cases than
branch coverage criterion.
3. Using the modified condition/branch coverage criterion, propose test cases for the following
(a || b) && (c || d)
Note that the test set is not unique; show all possibilities.