MCQ
Single Best Answer
Easy
QComplexity of a code is determined based on _________________.
ID: #24034
Build Process
94 views
Question Info
#24034Q ID
EasyDifficulty
Build ProcessTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option C
Explanation
✅ Cyclomatic Complexity Number
Explanation:
The complexity of code is primarily determined by Cyclomatic Complexity (CC), which measures the number of linearly independent paths in a program.
Why is it the correct answer?
- Cyclomatic Complexity Number ✅
- It calculates the control flow complexity of a program based on decision points (if, loops, switches).
- Higher complexity means harder to test and maintain code.
Why are the others incorrect?
- Efferent Coupling ❌
- Measures outgoing dependencies of a module, not code complexity.
- Number of Source Lines of Code (SLOC) ❌
- Measures code length but does not indicate logical complexity.
- Time taken to perform inspection ❌
- This depends on human effort and does not define complexity mathematically.
Thus, Cyclomatic Complexity Number is the correct answer! 🚀
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic