QUESTION IMAGE
Question
a variable used to keep track of the iteration
options (from image): forever loop (red), infinite loop (blue), loop counter (orange), loop (green)
A loop counter is a variable that tracks the number of iterations in a loop. A forever/infinite loop runs without termination, and "loop" is a general term. So the variable for tracking iteration is loop counter.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
A. forever loop (incorrect, runs infinitely)
B. infinite loop (incorrect, runs infinitely)
C. loop counter (correct, tracks iterations)
D. loop (incorrect, general term)
(Assuming options are labeled A - D as per the boxes: red - A, blue - B, orange - C, green - D)
So the correct answer is C. loop counter