A function contains three simple if statements (no compound conditions). Its cyclomatic complexity is:
Show answerHide answer
Correct answer: (C) 4
Explanation
Number of decision points + 1 = 3 + 1 = 4.
Correct answer: (C) 4
Explanation
Number of decision points + 1 = 3 + 1 = 4.
This is question 182 of DSSSB TGT Computer Science Full Mock Test 5. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.