QuestionQ24

Chapter 4: Test Analysis and Design

When tests are designed to achieve statement coverage, what do they execute?

  • A Only the decisions in the code
  • B Only the loops in the code
  • C Only the executable statements in the code
  • D All lines of code including executable statements and comments
Explanation

Statement coverage requires tests to execute each executable statement in the code at least once. Comments and other non-executable lines are outside its scope.

Community Discussion

No comments yet. Be the first to start the discussion!