Study the flowchart below. How many times will the loop body execute before the program stops?
Programming: Loop Flowchart
Answer: D. 4 times
The variable X starts at 1. The loop condition is X <= 4. The loop body (Print X, then X = X + 1) executes when X = 1, 2, 3, and 4 — a total of 4 times. When X becomes 5, the condition X <= 4 is false, so the program follows the "No" branch and stops. The output would be: 1, 2, 3, 4.