CAST Static Testing and Reviews 2 — Questions and Answers
Question 1: Which type of review is the most formal and follows a defined process with documented entry and exit criteria?
- Inspection (Correct answer)
- Walkthrough
- Informal review
- Technical review
Correct answer: Inspection
An inspection is the most formal review type, led by a trained moderator with strict entry/exit criteria and metrics collection.
Question 2: What is the primary benefit of static testing performed early in the software lifecycle?
- It detects defects before code is executed, reducing cost of fixes (Correct answer)
- It replaces the need for dynamic testing
- It measures runtime performance
- It validates the user interface
Correct answer: It detects defects before code is executed, reducing cost of fixes
Static testing finds defects early without execution, when they are cheapest to fix.
Question 3: In a formal inspection, who is responsible for leading the meeting and ensuring the process is followed?
- The moderator (Correct answer)
- The author
- The scribe
- The manager
Correct answer: The moderator
The moderator leads the inspection, schedules it, and enforces the defined process.
Question 4: Which activity is characteristic of a walkthrough?
- The author guides participants through the document to gather feedback (Correct answer)
- A tool automatically scans the code for violations
- The product is executed against test cases
- A moderator collects defect metrics for process improvement
Correct answer: The author guides participants through the document to gather feedback
In a walkthrough, the author leads participants through the work product step by step.
Question 5: What does static analysis using a tool typically detect?
- Coding standard violations and potential defects without running the code (Correct answer)
- Memory usage during execution
- User acceptance issues
- Response time under load
Correct answer: Coding standard violations and potential defects without running the code
Static analysis tools examine source code for standards violations and potential defects without execution.
Question 6: Which document is a typical input (entry criterion) for a review?
- The work product to be reviewed and relevant standards (Correct answer)
- The final test summary report
- The production deployment log
- The customer invoice
Correct answer: The work product to be reviewed and relevant standards
A review needs the work product and applicable reference documents or standards as inputs.
Question 7: What is a key advantage of reviews over dynamic testing?
- Reviews can find defects in documents that cannot be executed, like requirements (Correct answer)
- Reviews always find more defects than testing
- Reviews require no human effort
- Reviews can only be done after coding
Correct answer: Reviews can find defects in documents that cannot be executed, like requirements
Reviews can examine non-executable artifacts such as requirements and design documents that dynamic testing cannot.
Which type of review is the most formal and follows a defined process with documented entry and exit criteria?