Question: Consider the following code that accepts two positive integer numbers as inputs. 1. read x, y 2. Result 1= 1 3. Result 2 = 1

 Consider the following code that accepts two positive integer numbers asinputs. 1. read x, y 2. Result 1= 1 3. Result 2

Consider the following code that accepts two positive integer numbers as inputs. 1. read x, y 2. Result 1= 1 3. Result 2 = 1 4. counter = 1 5. repeat 6. result 1= result 1*x 7. counter = counter + 1 8. Until (counter > y) 9. counter = x 10. Do while (counter > 0) 11. result 2= result 2"y 12. counter = counter - 1 13. End Do 14. If (result ] > result 2) 15. then print "x"y is greater than y"x" 16. else print "y"x is greater than x"y" 17. End if 18. EndAssume that the program graph for the above program includes every statement, including the dummy statements such as "End If" and 'End', as separate nodes. How many test data are required for statement coverage ? Oa. 1 b. 2 Oc. 3 Od. 4 Oe.0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!