New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

ISTQB ATTA Exam - Topic 2 Question 112 Discussion

Actual exam question for ISTQB's ATTA exam
Question #: 112
Topic #: 2
[All ATTA Questions]

Which of the following is a valid way to calculate the cyclomatic complexity? 1 credit [K2]

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

0/2000 characters
Silva
2 months ago
I had no idea there were so many ways to calculate this!
upvoted 0 times
...
Vi
2 months ago
Totally agree with D, it's the most accurate method!
upvoted 0 times
...
Goldie
3 months ago
A is the classic formula for cyclomatic complexity.
upvoted 0 times
...
Elli
3 months ago
Wait, is B even a thing? Sounds off.
upvoted 0 times
...
Abel
3 months ago
I think it's definitely D, right?
upvoted 0 times
...
Herschel
3 months ago
I don't think it's about the number of statements. That doesn't seem right to me, but I can't remember the exact formula.
upvoted 0 times
...
Pearlene
4 months ago
I feel like I saw something about enclosed regions in my notes, but I can't recall if it was minus 1 or plus something.
upvoted 0 times
...
Phil
4 months ago
I remember practicing a question where we had to use the formula with links and nodes. I think option D sounds familiar.
upvoted 0 times
...
Erasmo
4 months ago
I think cyclomatic complexity is calculated using the number of decisions, but I'm not sure if it's plus 2 or something else.
upvoted 0 times
...
Simona
4 months ago
I'm a bit confused by this question. I know cyclomatic complexity is important, but I can't remember the exact formula off the top of my head. I'll have to review my notes and try to reason through the options to figure out the right answer.
upvoted 0 times
...
Kenneth
4 months ago
Okay, let me think this through step-by-step. Cyclomatic complexity is a measure of the number of independent paths through the code, right? So the formula should be something related to the control flow structures. I'm going to go with option B, since that seems to match the concept of enclosed regions.
upvoted 0 times
...
Laquita
5 months ago
Hmm, I'm a bit unsure about this one. I know cyclomatic complexity has to do with the control flow of the code, but I can't quite recall the exact formula. I'll have to think this through carefully.
upvoted 0 times
...
Celestina
5 months ago
This seems like a straightforward question on cyclomatic complexity. I think I remember the formula being something like number of decisions plus 2, so I'll go with option A.
upvoted 0 times
...
Tomoko
6 months ago
Wait, there's no option for 'all of the above'? I'm feeling a bit cheated here.
upvoted 0 times
...
Gilma
6 months ago
D, all the way! Linking and nodding my way to success.
upvoted 0 times
Marjory
5 months ago
B) Number of enclosed regions - 1
upvoted 0 times
...
Luann
5 months ago
A) Number of decisions + 2
upvoted 0 times
...
...
Luz
7 months ago
That makes sense, decisions in the code determine the complexity of different paths that can be taken.
upvoted 0 times
...
Ashley
7 months ago
I've heard that the correct way to calculate cyclomatic complexity is by counting the number of decisions in the code.
upvoted 0 times
...
Jennifer
7 months ago
I'm feeling option A on this one. Who doesn't love a good decision-making process?
upvoted 0 times
Krystal
5 months ago
I'm not sure, I think it might be option B instead.
upvoted 0 times
...
Cory
6 months ago
I agree, calculating based on the number of decisions makes sense.
upvoted 0 times
...
Malcolm
6 months ago
I think option A is the way to go.
upvoted 0 times
...
...
Ciara
7 months ago
I'm not sure, but I think it might be D) Links - Nodes + 2.
upvoted 0 times
...
Mila
8 months ago
Option B seems like the way to go. Gotta keep those enclosed regions in check, am I right?
upvoted 0 times
Patria
7 months ago
C) Number of statements - 2
upvoted 0 times
...
Deonna
7 months ago
B) Number of enclosed regions - 1
upvoted 0 times
...
Ludivina
7 months ago
A) Number of decisions + 2
upvoted 0 times
...
...
Luz
8 months ago
I disagree, I believe it's B) Number of enclosed regions - 1.
upvoted 0 times
...
Ashley
8 months ago
I think the answer is A) Number of decisions + 2.
upvoted 0 times
...

Save Cancel