C-18-Q003mediumsingle_mcq
In a nested for loop, the loop that surrounds another for is called the:
In a nested for loop, the loop that surrounds another for is called the:
- aInner for loop
- bOuter for loop
- cPre-loop
- dPost-loop
ব্যাখ্যা
The outer loop is the one that contains another loop inside its body, so the loop surrounding the inner for is called the outer loop. Each pass of the outer loop triggers the entire inner loop.