Question 182

A function contains three simple if statements (no compound conditions). Its cyclomatic complexity is:

  1. A3
  2. B6
  3. C4
  4. D2
Show answerHide answer

Correct answer: (C) 4

Explanation

Number of decision points + 1 = 3 + 1 = 4.

From DSSSB TGT Computer Science Full Mock Test 5

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.