Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started