Preventing defects from being introduced into the code is not a valid objective of testing, because testing can only detect defects that are already present in the code, not prevent them from happening. Testing can help prevent future defects by providing feedback to developers and other stakeholders, but it cannot guarantee that no defects will be introduced. Preventing defects is more related to quality assurance activities, such as reviews, inspections, and standards12.
Question 2
Which of the following is NOT an objective of testing?
Options:
A.
Finding defects
B.
Providing information for decision-making
C.
Analyzing and removing the cause of failures
D.
Gaining confidence about the level of quality of the software
Answer:
C
Explanation:
Explanation:
Testing has several objectives that aim to provide information and confidence about the quality and risk level of the software product and to support decision-making and improvement processes. Some of these objectives are:
Finding defects: Testing is the process of finding defects or failures in the software product that do not meet its requirements or expectations.
Providing information for decision-making: Testing is the process of providing information about the quality and risk level of the software product based on the observed behavior and results under certain conditions and assumptions. This information can help stakeholders make informed decisions about releasing, deploying, accepting, or improving the software product.
Gaining confidence about the level of quality of the software: Testing is the process of gaining confidence that the software product meets its requirements and expectations and provides value to the users and customers.
Analyzing and removing the cause of failures: Testing is not only the process of finding defects but also the process of analyzing and removing the cause of failures that lead to defects. This objective is related to debugging, which is a development activity that involves locating, diagnosing, and fixing errors in the code or design of the software product.
You can find more information about the objectives of testing in [A Study Guide to the ISTQB® Foundation Level 2018 Syllabus], Chapter 1, Section 1.2.
Question 3
Which of the following correctly states a limitation in the use of static analysis tools? [K1]
Options:
A.
Static analysis tools can be applied to new code but cannot be applied to existing code
B.
Static analysis tools can be used to enforce coding standards
C.
Static analysis tools always generate large numbers of warning messages when applied to new code, even if the code meets coding standards
D.
Static analysis tools do not generate warning messages when applied to existing code
Answer:
C
Explanation:
Explanation:
A limitation in the use of static analysis tools is C. Static analysis tools always generate large numbers of warning messages when applied to new code, even if the code meets coding standards. Static analysis tools are tools that analyze the code or other software artifacts without executing them, and report any defects, errors, vulnerabilities, or violations of coding standards or conventions. Static analysis tools can help to improve the quality and maintainability of the code or other software artifacts. However, static analysis tools also have some limitations, such as generating large numbers of warning messages when applied to new code, even if the code meets coding standards or conventions. This can make it difficult for developers or testers to identify and prioritize the most important or critical issues to fix or address. A detailed explanation of static analysis tools can be found in A Study Guide to the ISTQB® Foundation Level 2018 Syllabus, pages 109-1101.