Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

11 multiple choice 1 point in a nested loop, what is the outer loop? th…

Question

11 multiple choice 1 point in a nested loop, what is the outer loop? the loop with the smaller range of values. the loop with the larger range of values. the loop that contains the inner loop. the loop that executes first in the code.

Explanation:

Brief Explanations

In a nested loop, the outer loop is the loop that contains the inner loop. The range of values (smaller or larger) is not the defining characteristic. Also, the order of execution in code (first - but loops can be structured in different ways) is not the correct definition. The key is the containment relationship.

Answer:

The loop that contains the inner loop.