You have designed test cases to provide 100%

statement a

Loading

Practice ISTQB Foundation Level Q&A – You have designed test cases to provide 100%

statement and 100% decision coverage for the following fragment of code.

if width > length then 

biggest_dimension = width else

biggest_dimension = length end_if

The following has been added to the bottom of the code fragment above.

print "Biggest dimension is " & biggest_dimension print "Width: " & width

print "Length: " & length

How many more test cases are required?

Given the following fragment of code, how many tests are required for

Loading

Practice ISTQB Foundation Level Q&A – Given the following fragment of code, how many tests are required for 100% decision coverage?

if width > length then 

biggest_dimension = width

if height > width then

biggest_dimension = height end_if

else

biggest_dimension = length if height > length

then

biggest_dimension = height end_if

end_if