C-18-Q025mediummulti_combo_mcq
Which of the following can be placed inside a while loop body?
Which of the following can be placed inside a while loop body?
- another
whileloop - a
forloop - an
ifstatement
- ai and ii only
- bi and iii only
- cii and iii only
- di, ii, and iii
ব্যাখ্যা
A while loop body is a normal code block, so it can contain any valid statements. This includes other loops (while or for) and conditional if statements, so all three are allowed.