Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In the logical structure of a sample code there are 5 statements and 9 paths. We

ID: 3845737 • Letter: I

Question

In the logical structure of a sample code there are 5 statements and 9 paths. We can conclude that: To properly test the sample code testing the 5 statements fully is a good testing coverage. To properly test the sample code, testing the 9 paths fully is a good testing coverage unless further information on the paths independence is given. Testing the 9 paths fully is a waste since testing all the statements should provide enough testing cases. Since there are 5 statement and 9 paths, hence an average of 7 different possibilities, then testing the 7 possibilities should be a good coverage without wasteful testing.

Explanation / Answer

Ans

To properly test the sample code, testing the 9 paths fully is a good testing coverage unless further information on the paths independence is given.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote