Which of the following test cases will ensure that the statement Print Hold is exercised?
Refer to the exhibit -
Which of the following test cases will ensure that the statement Print Hold is exercised?
Refer to the exhibit -
To print 'Hold', the conditions that need to be met are: X must not be greater than Y (X > Y must be false), X must not be equal to Y (X = Y must be false), and Y must be greater than Z (Y > Z must be true). Given the values X=2, Y=4, and Z=3, we can see: 2 > 4 is false, 2 = 4 is false, and 4 > 3 is true. Therefore, these values satisfy the conditions to exercise the statement 'Print Hold'.
To get to Print Hold X>Y must be false X=Y must be false Y>Z must be true X = 2 Y = 4 Z = 3
C is correct
Can any one help me to explain the answer ??🙋♂️
substitute the values