Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

ISTQB Exam ATTA Topic 1 Question 102 Discussion

Actual exam question for ISTQB's ATTA exam
Question #: 102
Topic #: 1
[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:

Asha
7 days ago
Option B is the way to go. It's a classic formula that everyone knows. Unless you're trying to confuse the examiner, in which case, well played.
upvoted 0 times
...
Paola
8 days ago
Haha, I bet the person who wrote option C was just trying to be funny. Subtracting 2 statements? That's not how you calculate anything, that's just making things up!
upvoted 0 times
...
Joanna
10 days ago
Option D? Really? That's just nonsense. Links and nodes? What does that even have to do with cyclomatic complexity?
upvoted 0 times
...
Jeannetta
17 days ago
Hmm, I'm not so sure. I thought it was the number of decisions plus 2. Doesn't that make more sense for calculating the complexity?
upvoted 0 times
...
Johnetta
19 days ago
I'm not sure, but I think A) Number of decisions + 2 makes sense because decisions contribute to the complexity of the code.
upvoted 0 times
...
Carin
21 days ago
I disagree, I believe it's B) Number of enclosed regions - 1 because it accounts for the complexity of the code structure.
upvoted 0 times
...
Louvenia
22 days ago
Option B seems the most logical to me. Cyclomatic complexity is all about the number of independent paths through the code, and that's directly related to the number of enclosed regions.
upvoted 0 times
Justine
4 days ago
I'm not sure, I thought it was based on the number of decisions in the code. So maybe option A?
upvoted 0 times
...
Rickie
6 days ago
I think option B is correct too. It makes sense when you think about the number of paths through the code.
upvoted 0 times
...
...
Yuki
26 days ago
I think the correct answer is A) Number of decisions + 2.
upvoted 0 times
...

Save Cancel