Question: When break is used inside two nested for loops, does control come out of the inner for loop or the outer for loop?

  1. It breaks from only the outer loop.
  2. It breaks from all loops.
  3. It breaks from only the inner loop.
  4. It breaks from the outer loop after the second iteration.

Answer: The correct answer of the above question is Option C:It breaks from only the inner loop.