iSQI ISTQB Certified Tester Foundation Level (Syllabus 2018) CTFL_Syll2018 Question # 16 Topic 2 Discussion

iSQI ISTQB Certified Tester Foundation Level (Syllabus 2018) CTFL_Syll2018 Question # 16 Topic 2 Discussion

CTFL_Syll2018 Exam Topic 2 Question 16 Discussion:
Question #: 16
Topic #: 2

Consider the following pseudo code:

1. Begin

2. Input X, Y

3. If X > Y

4. __Print (X, ‘is greater than’, Y)

5. Else

6. __Print (Y, is greater than or equal to’, X)

7. EndIf

8. End

What is the minimum number of test cases required to guarantee both 100% statement coverage and 100% decision coverage?


A.

Statement coverage = 3, Decision coverage = 3


B.

Statement coverage = 2, Decision coverage = 2


C.

Statement coverage = 1, Decision coverage = 2


D.

Statement coverage = 2, Decision coverage = 1


Get Premium CTFL_Syll2018 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.