CAST Fundamentals — Questions and Answers
Question 1: What is the main objective of software testing?
- Eliminate the need for debugging
- Identify defects and verify requirements (Correct answer)
- Increase the complexity of the software
- Ensure 100% defect-free software
Correct answer: Identify defects and verify requirements
The primary goal of software testing is to identify defects and ensure that the software meets the specified requirements and performs as expected.
Question 2: Which principle states that exhaustive testing is impossible?
- Defect clustering
- Exhaustive testing is impossible (Correct answer)
- Early testing
- Pesticide paradox
Correct answer: Exhaustive testing is impossible
The principle of 'Testing is exhaustive' states that it is impossible to test every possible input, so risk-based and prioritized testing is essential.
Question 3: What is the purpose of the 'Pesticide Paradox' principle in software testing?
- Ensure maximum test coverage
- Prevent defects from recurring
- Modify tests regularly to find new defects (Correct answer)
- Eliminate the need for test cases
Correct answer: Modify tests regularly to find new defects
The 'Pesticide Paradox' principle states that running the same tests repeatedly will not uncover new defects, so tests should be updated regularly.
Question 4: Which type of testing is performed without executing the code?
- Static testing (Correct answer)
- Dynamic testing
- Regression testing
- Performance testing
Correct answer: Static testing
Static testing, such as code reviews and inspections, is conducted without executing the software, identifying defects early in development.
Question 5: What is the key benefit of early testing?
- Reduce testing time
- Identify defects early to minimize costs (Correct answer)
- Increase the number of test cases
- Eliminate the need for user acceptance testing
Correct answer: Identify defects early to minimize costs
Early testing helps identify defects in the initial stages of development, reducing the cost and effort required to fix them later.
Question 6: Which testing concept states that most defects are found in a few modules?
- Exhaustive testing
- Defect clustering (Correct answer)
- Shift-left testing
- Equivalence partitioning
Correct answer: Defect clustering
The 'Defect Clustering' principle suggests that most defects tend to be concentrated in a small number of software modules.
What is the main objective of software testing?