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

Loading

โœช Choose the correct option.

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

A. 3
B. 4
C. 2
D. 1

Leave a Comment