ISTQB-CTFL-FOUNDATION practice question 35 of 35

Which of the following statements is true? Select exactly one option (1 out of 4)!

Full set: 403 questions
Answer options
A: Errors are the inevitable result of software failure.
B: Defects in the program code may be caused by environmental conditions.
C: Defects in the program code may result in failures in the program during execution. Correct answer
D: Any deviation of the actual from the expected result represents an error.
Correct Answer:
C. Defects in the program code may result in failures in the program during execution.
Explanation

The relationship between errors, defects, and failures is a fundamental concept. An error (a human mistake) can lead to a defect (a fault or bug) being introduced into the code or another work product. This defect remains dormant until the code is executed. If the execution conditions trigger the defect, it may cause a failure, which is an observable deviation of the system's actual behavior from its expected behavior. Therefore, a defect in the code is a potential cause of a failure during execution.

Why Incorrect

A. This statement reverses the cause-and-effect relationship. Failures are the result of defects, which are caused by errors.
B. Environmental conditions can trigger a failure from a pre-existing defect, but they do not cause the static defect in the code itself.
D. A deviation of the actual from the expected result is a failure. An error is the human action that created the defect.

References

ISTQB® Certified Tester Foundation Level Syllabus v4.0, Section 1.2.1, Errors, Defects, and Failures: "A person can make an error (mistake), which can lead to the introduction of a defect (fault, bug) into a work product... If a defect in the code is executed, it may cause a failure."

ISTQB® Glossary of Testing Terms v4.0, definitions for 'defect', 'error', and 'failure'.

Scroll to Top