English

Which of the following are entry controlled loops? for while do..while switch - Computer Applications

Advertisements
Advertisements

Question

Which of the following are entry-controlled loops?

  1. for
  2. while
  3. do..while
  4. switch

Options

  • Only 1

  • 1 and 2

  • 1 and 3

  • 3 and 4

MCQ

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?
2023-2024 (February) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×