Exam CTAL-TTA Topic 1 Question 6 Discussion
Actual exam question for ISTQB's CTAL-TTA exam
Question #: 6
Topic #: 1
Question #: 6
Topic #: 1
Listed below are some possible findings from static analysis of a component containing approximately 1,000 lines of code. Which combination suggests that the component does NOT need refactoring for better maintainability?
A) Low measure of coupling.
B) Low measure of cohesion.
C) Low measure of commenting.
D) Low measure of complexity.
E) High measure of coupling.
F) High measure of cohesion.
G) High measure of commenting.
H) High measure of complexity.
A) Low measure of coupling.
B) Low measure of cohesion.
C) Low measure of commenting.
D) Low measure of complexity.
E) High measure of coupling.
F) High measure of cohesion.
G) High measure of commenting.
H) High measure of complexity.
Suggested Answer: D Vote an answer
When evaluating a component for maintainability, several metrics are considered:
* Coupling: Refers to the degree of interdependence between software modules. Lower coupling is preferred for maintainability.
* Cohesion: Refers to how closely related the responsibilities of a single module are. Higher cohesion within modules is preferred.
* Commenting: Refers to the presence of comments within the code. While useful, excessive commenting is not necessarily an indicator of maintainability.
* Complexity: Refers to the complexity of the code, often measured by metrics like cyclomatic complexity. Lower complexity is preferred.
Given these metrics:
* d. Low measure of complexity: Indicates the code is simple and straightforward, which enhances maintainability.
* f. High measure of cohesion: Indicates that modules have clear, well-defined responsibilities, enhancing maintainability.
* h. High measure of complexity: This should generally be low for better maintainability, but in this context, the assumption is an erroneous inclusion in the preferred list.
Thus, the best combination suggesting that the component does NOT need refactoring for better maintainability is d, f, h.
References:
* The selection of metrics and their desired values are based on software engineering principles covered in the ISTQB CTAL-TTA syllabus, which emphasizes low complexity and high cohesion for maintainable software design.
* Coupling: Refers to the degree of interdependence between software modules. Lower coupling is preferred for maintainability.
* Cohesion: Refers to how closely related the responsibilities of a single module are. Higher cohesion within modules is preferred.
* Commenting: Refers to the presence of comments within the code. While useful, excessive commenting is not necessarily an indicator of maintainability.
* Complexity: Refers to the complexity of the code, often measured by metrics like cyclomatic complexity. Lower complexity is preferred.
Given these metrics:
* d. Low measure of complexity: Indicates the code is simple and straightforward, which enhances maintainability.
* f. High measure of cohesion: Indicates that modules have clear, well-defined responsibilities, enhancing maintainability.
* h. High measure of complexity: This should generally be low for better maintainability, but in this context, the assumption is an erroneous inclusion in the preferred list.
Thus, the best combination suggesting that the component does NOT need refactoring for better maintainability is d, f, h.
References:
* The selection of metrics and their desired values are based on software engineering principles covered in the ISTQB CTAL-TTA syllabus, which emphasizes low complexity and high cohesion for maintainable software design.
by Howar at Nov 04, 2025, 12:08 AM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).