C-18-Q017mediumsingle_mcq
Without an increment or decrement to the counter, a while loop will most likely:
Without an increment or decrement to the counter, a while loop will most likely:
- aRun exactly once
- bSkip its body entirely
- cRun forever (infinite loop)
- dRaise a syntax error
ব্যাখ্যা
If the counter is never incremented or decremented, the loop condition stays true forever, so the loop runs endlessly. This missing update is a common cause of an infinite loop.