English

Which of the following is called the entry control loop?

Advertisements

Question

Which of the following is called the entry control loop?

Options

  • do-while

  • for

  • while

  • if-else

MCQ
Advertisements

Solution

while

Explanation:

An entry control loop is a loop in which the condition is checked before entering the loop body.

  • In a While loop, the condition is tested before the body is executed.

  • If the condition is false initially, the loop does not execute even once.

shaalaa.com
Iteration Statements
  Is there an error in this question or solution?
Chapter 10: Flow of Control - Evaluation - Section - A [Page 178]
Advertisements
Share
Notifications



      Forgot password?
Use app×