Which of the following are entry controlled loops? for while do..while switch
Advertisements
Question
Which of the following are entry-controlled loops?
- for
- while
- do..while
- switch
Options
Only 1
1 and 2
1 and 3
3 and 4
MCQ
Advertisements
Solution
1 and 2
Explanation:
The for loop and while loop are entry-controlled loops that check the condition before entering the loop body.
shaalaa.com
Entry Controlled Loop
Is there an error in this question or solution?
