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
Answer and explanation
Concise answer
Cohesive module
Why this is correct
A cohesive module does just one thing. A subroutine dedicated to input validation is therefore cohesive.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
