nerdexam
iSQI

CTFL_SYLL_4.0 · Question #129

Which of the following statements about statement coverage is TRUE?

The correct answer is D. Achieving 80% statement coverage ensures that 80% of all executable statements within the. Statement coverage measures the percentage of executable statements that have been exercised by a test suite. Achieving 80% statement coverage means that 80% of the executable code lines have been tested. This metric helps in understanding how much of the code has been covered…

Test Analysis and Design

Question

Which of the following statements about statement coverage is TRUE?

Options

  • AAchieving 90% statement coverage ensures that 90% branch coverage is achieved.
  • BAchieving 100% statement coverage ensures that no variable within the code has been used
  • CAchieving 100% statement coverage ensures that 100% branch coverage is achieved
  • DAchieving 80% statement coverage ensures that 80% of all executable statements within the

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    17% (5)
  • C
    7% (2)
  • D
    72% (21)

Explanation

Statement coverage measures the percentage of executable statements that have been exercised by a test suite. Achieving 80% statement coverage means that 80% of the executable code lines have been tested. This metric helps in understanding how much of the code has been covered during testing. However, it does not guarantee branch coverage, variable initialization, or detection of all possible defects. The ISTQB CTFL Syllabus v4.0 explains statement coverage as a measure of the extent to which the code has been tested, without implying other types of coverage or testing goals.

Topics

#statement coverage#branch coverage#white-box testing#code coverage

Community Discussion

No community discussion yet for this question.

Full CTFL_SYLL_4.0 Practice