Calculating Cyclomatic complexity

Home Forums Software Testing Discussions Calculating Cyclomatic complexity

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #13333
    sarah
    Participant
    @sarah-chandran

    Can you please tell me how to calculate cyclomatic complexity as described in the question below? 4 choices are given. What is meant by juxtaposition of code segments?

    Question)If two code segments have Cyclomatic complexities of N1 and N2 respectively, what will be the Cyclomatic complexity of the juxtaposition of the two code segments?
    a) N1+N2
    b) N1+N2+1
    c) N1+N2-1
    d) N1*N2

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.