CT-AI · Question #118
Which ONE of the following would be the MOST effective input to an AI-based defect prediction tool?
The correct answer is B. Cyclomatic complexity. Cyclomatic complexity would be the most effective input to an AI-based defect prediction tool. Cyclomatic complexity is a software metric that measures the complexity of a program's control flow, which is closely related to the likelihood of defects. Higher complexity generally…
Question
Which ONE of the following would be the MOST effective input to an AI-based defect prediction tool?
Options
- ADevelopers associated with previous code changes
- BCyclomatic complexity
- CLines of code changed
- DCommit size
How the community answered
(28 responses)- A11% (3)
- B82% (23)
- C4% (1)
- D4% (1)
Explanation
Cyclomatic complexity would be the most effective input to an AI-based defect prediction tool. Cyclomatic complexity is a software metric that measures the complexity of a program's control flow, which is closely related to the likelihood of defects. Higher complexity generally indicates a higher probability of defects. This makes it a strong predictor of potential issues in the code, and thus a valuable input for defect prediction.
Topics
Community Discussion
No community discussion yet for this question.