C-18-Q009mediumsingle_mcq
The condition of a while loop is verified at:
The condition of a while loop is verified at:
- aThe end of the loop body
- bThe beginning of the loop
- cThe middle of the loop
- dRandom points
ব্যাখ্যা
A while loop checks its condition at the very beginning, before each execution of the loop body. Because of this pre-test nature, the condition is evaluated first to decide whether the body runs at all.