C-18-Q004mediumsingle_mcq
Which loop completes its full set of iterations first in a nested for structure?
Which loop completes its full set of iterations first in a nested for structure?
- aThe outer loop
- bThe inner loop
- cBoth at the same time
- dNeither — they run in parallel
ব্যাখ্যা
For every single pass of the outer loop, the inner loop must run through all of its iterations before control returns to the outer loop. This means the inner loop finishes its complete cycle first, repeatedly.