C-18-Q012mediumsingle_mcq
If the condition supplied to a while loop is initially false, the body of the loop is executed:
If the condition supplied to a while loop is initially false, the body of the loop is executed:
- aOnce
- bZero times
- cInfinitely
- dTwice
ব্যাখ্যা
Since a while loop tests its condition before entering the body, a condition that is false from the start means the body never runs. The loop therefore executes zero times.