CSM Quality Assurance & Testing Practices 3 — Questions and Answers
Question 1: Which testing level verifies that separately developed software modules work correctly when combined?
- Unit testing
- Integration testing (Correct answer)
- System testing
- Acceptance testing
Correct answer: Integration testing
Integration testing focuses on the interactions and interfaces between modules or components after unit testing.
Question 2: A CSM is reviewing a process where developers examine each other's code for defects. This is best described as:
- Pair programming
- Code walkthrough
- Peer code review (Correct answer)
- Static analysis
Correct answer: Peer code review
Peer code review is a static testing technique where developers inspect each other's code to find defects before execution.
Question 3: Which metric measures the percentage of source code lines executed during testing?
- Branch coverage
- Statement coverage (Correct answer)
- Path coverage
- Condition coverage
Correct answer: Statement coverage
Statement coverage measures the percentage of executable statements that have been exercised by the test suite.
Question 4: User Acceptance Testing (UAT) is BEST described as testing performed by:
- QA engineers in a lab environment
- End users or clients to validate the system meets business needs (Correct answer)
- Developers before code is committed
- Third-party security auditors
Correct answer: End users or clients to validate the system meets business needs
UAT is conducted by end users or clients to ensure the system satisfies real-world business requirements before go-live.
Question 5: In risk-based testing, test priority is determined by:
- The personal preference of the test lead
- The likelihood and impact of potential failures (Correct answer)
- The alphabetical order of module names
- The number of lines of code in each module
Correct answer: The likelihood and impact of potential failures
Risk-based testing prioritizes test effort based on the probability that a feature will fail and the severity of that failure.
Question 6: Which document formally records the details of a test case including inputs, expected results, and execution steps?
- Test plan
- Test script (Correct answer)
- Defect report
- Requirements traceability matrix
Correct answer: Test script
A test script (or test case document) specifies the exact steps, inputs, and expected outcomes for executing a test.
Question 7: What is the main goal of regression testing after a software defect is fixed?
- To document the defect in the defect tracking system
- To ensure the fix did not introduce new defects in existing functionality (Correct answer)
- To evaluate system performance under load
- To train new team members on the codebase
Correct answer: To ensure the fix did not introduce new defects in existing functionality
Regression testing confirms that a bug fix or change has not broken previously working functionality.
Which testing level verifies that separately developed software modules work correctly when combined?