C-18-Q023mediumsingle_mcq
The statement associated with a while loop is usually a:
The statement associated with a while loop is usually a:
- aSingle statement only
- bCompound statement
- cComment
- dFunction declaration
ব্যাখ্যা
A while loop's body normally contains several statements grouped together, so it is written as a compound statement (a block) rather than just one line. This lets the loop repeat a whole sequence of actions on each pass.