C-18-Q011mediumsingle_mcq
A while loop terminates whenever the condition becomes:
A while loop terminates whenever the condition becomes:
- aTrue
- bNon-zero
- cFalse
- dA string
ব্যাখ্যা
A while loop keeps repeating only while its condition is true; the moment the condition becomes false, the loop stops and control passes to the next statement. Termination is therefore triggered by a false condition.