| preferred AP College board partner for AP classes
hard Solved by 1 students
Cyclomatic Complexity of Nested Conditionals
< Prev
Next >

Consider this nested conditional structure for determining a student�27s academic status:

IF (credits >= 90)
IF (gpa >= 2.0)
status = “Senior in good standing”
ELSE
status = “Senior on probation”
ELSE IF (credits >= 60)
IF (gpa >= 2.0)
status = “Junior in good standing”
ELSE
status = “Junior on probation”

What is the cyclomatic complexity of this code segment?

A

3

B

6

C

5

D

4

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Not enough data yet to show leaderboard.

No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: [email protected]|Privacy Policy