Which one of the following assertions concerning code inspection and code…
20152025
Which one of the following assertions concerning code inspection and code walkthrough is true?
- A.
Code inspection is carried out once the code has been unit tested
- B.
Code inspection and code walkthrough are synonyms
- C.
Adherence to coding standards is checked during code inspection
- D.
Code walkthrough is usually carried out by an independent test team
Attempted by 180 students.
Show answer & explanation
Correct answer: C
Answer: Adherence to coding standards is checked during code inspection.
Explanation:
What a code inspection is: A formal, checklist-driven peer review of source code that focuses on finding defects, verifying adherence to coding standards, and identifying design or logic issues.
What a code walkthrough is: A generally less formal session led by the code author to explain the code and solicit feedback; it may not use formal checklists or roles.
Why the correct statement is true: Inspections explicitly check coding standards as part of their checklist-driven process, so checking adherence to standards is a primary inspection activity.
Why the other statements are false:
The statement that inspections are carried out once unit testing is complete is misleading because inspections are static reviews that can occur before testing or independently of unit testing.
Saying inspections and walkthroughs are synonyms is incorrect since inspections are formal with defined roles and metrics, whereas walkthroughs are informal and explanatory.
The idea that walkthroughs are usually done by an independent test team is incorrect because walkthroughs are normally author-led sessions with peers or stakeholders rather than a formal independent testing activity.