How many test cases are necessary to cover all the possible sequences - ProProfs Discuss
Advertisement

How many test cases are necessary to cover all the possible sequences of paths for the following program fragment?

How many test cases are necessary to cover all the possible sequences of paths for the following program fragment?

Change Image    Delete



Asked by Devilbrand, Last updated: Dec 26, 2024

+ Answer
Request
Question menu
Vote up Vote down

2 Answers

M. Kennedy

M. Kennedy

M. Kennedy
M. Kennedy, Web Content Writer, Denver

Answered Jun 28, 2018

The answer to this question is 2 test cases. This is because two of the conditions are independent of each other. In order to make this easier for you to understand, you can put values for the conditions. Prepare to have another set of test values that are meant to go through the wrong path.

Take note that paths for 3 and 4 are both false which explains why the answer would be letter A. It is best to seek more information about it if you are not convinced or if you would need more details about how this is possible.

upvote downvote
Reply 

lusandandzombane

lusandandzombane

lusandandzombane
Lusandandzombane

Answered Jun 06, 2017

Suppose 2 test cases, how did u get to 4?
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.