QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 64

A break statement runs inside the inner loop of two nested for loops. Which control-flow result follows?

  1. The current inner pass restarts from its top
  2. Both loops end immediately
  3. The entire program terminates
  4. Only the inner loop endsՃիշտ պատասխան

Բացատրություն

Break transfers control out of the closest enclosing loop, so the outer loop can continue with its own next pass. It neither exits every surrounding loop nor terminates the whole program by itself.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 64: A break statement runs inside the inner loop of two nested… · Python Fundamentals · Questena