Important MCQ

A loop is used to

Q.A loop is used to

A) include headers
B) end the program
C) repeat a block of statements
D) declare variables
Correct Answer:
Option C
Detailed Explanation:
C) repeat a block of statements is correct. A loop repeats a block of statements. One pass is an iteration; break exits a loop, continue skips the rest of the current iteration, and for/while are entry-controlled.