in Others
618 views
0 votes
0 votes
What is the cyclomatic complexity of given code?

while(i<3 AND j>9){.....}

A. 1

B. 2

C. 3

D. 4
in Others
by
618 views

1 comment

No of predicate nodes (decision making nodes   /   conditions) +1

so, 2+1 =3

there are two conditions in while.

if(firsttrue) then if(secondtrue) then run statements in while else out of while
2
2

1 Answer

0 votes
0 votes
not in gate cs 2018 syllabus