Multiple choice technology programming languages

The code above will go into an infinite loop.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The nested loop structure has a definite termination condition (i<5) and no modification to loop variables that would prevent termination. The outer loop runs i from 0 to 4, the inner loop has a fixed range, and both loops increment properly. This code will definitely terminate after a finite number of iterations - it does NOT go into an infinite loop.