Similar questions 2 more →
Software Engineering

Answer & solution
Answer: A (no official key was published)
For a connected single-entry/single-exit flow graph, cyclomatic complexity is the number of decision points plus one. Complexity 10 in each component means nine independent decisions each. Sequentially composing them adds their decision counts but introduces only one overall baseline path: 9+9+1=19. Equivalently V(A;B)=V(A)+V(B)−1, so A.
The flow-graph formula gives the same result. Connecting A’s exit to B’s entry adds one edge while leaving N_A+N_B vertices. Thus E−N+2=(E_A−N_A+2)+(E_B−N_B+2)−1=19. Simply adding 10+10 counts the straight-through baseline path twice.