...
Software-testing
August 26, 2024
Software-testing
August 26, 2024
Software-testing
August 26, 2024
Software-testing
August 26, 2024

Software-testing

Question 34

What is the Cyclomatic Complexity of the following flow-graph of a software code?

A
10
B
4
C
8
D
2
Question 34 Explanation: 
Step-1: To find cyclomatic complexity we have 3 formulas.
Number of regions(R) + 1
Predicates(P) + 1
Edges(E) – Vertex(V) + 2
Step-2: We can apply any formula to find cyclomatic complexity.
Step-3: 8 vertex and 10 edges.
10 – 8 + 2 = 4
Correct Answer: B
Question 34 Explanation: 
Step-1: To find cyclomatic complexity we have 3 formulas.
Number of regions(R) + 1
Predicates(P) + 1
Edges(E) – Vertex(V) + 2
Step-2: We can apply any formula to find cyclomatic complexity.
Step-3: 8 vertex and 10 edges.
10 – 8 + 2 = 4
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!