Exam-style question
Try this first
A subroutine validates input and does not perform any other task. Which characteristic does this most directly demonstrate?.
- A.Cohesive module
- B.Global variable use
- C.Managed casting of types
- D.File path parameterisation
Model answer
What a good answer should say
- Cohesive module
Explanation
Why this works
A cohesive module does just one thing. A subroutine dedicated to input validation is therefore cohesive.
Common mistake
No common mistake is linked to this question yet.
