ExamGecko
Question list
Search
Search

Related questions











Question 68 - CTFL-2018 discussion

Report
Export

The following program part is given:

IF (condition A)

then DO B

END IF

How many test cases are necessary in order to achieve 100% statement coverage?

A.
1
Answers
A.
1
B.
2
Answers
B.
2
C.
4
Answers
C.
4
D.
a very high number
Answers
D.
a very high number
Suggested answer: B

Explanation:

To achieve 100% statement coverage, you need to execute every statement in the code at least once. In this case, you need two test cases: one where condition A is true and one where condition A is false. This way, you can cover both the DO B statement and the END IF statement. You can find more information about statement coverage inA Study Guide to the ISTQB Foundation Level 2018 Syllabus, Chapter 4, Section 4.31.

asked 18/09/2024
István Balla
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first