Multiple choice

Which of the following is not a coverage criterion for logic coverage?

  1. Every statement of the program must be executed at least once.

  2. Every branch in the program must be executed at least once.

  3. Every path in the program must be executed at least once.

  4. Every function in the program must be executed at least once.

  5. Every condition in the program must be executed at least once.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

For logic coverage, only the logic paths of the system are checked. It is not necessary to execute function.