ISTQB Advanced Technical Test Analyst (ATTA) — Question 4

What is the number of nested levels for the code fragment?

Answer options

Correct answer: C

Explanation

The correct answer is C, indicating that there are two levels of nested structures in the code fragment. Options A, B, and D are incorrect as they either underestimate or overestimate the levels of nesting present.