Multiple choice

Which of the following is not true about while and do while loop? (a) while loop is entry control and do-while is exit control. (b) do-while must be executed atleast once and while loop may execute once or not. (c) ‘;’ is given after while in both while and do-while loop. (d) Condition is given in while statement in both while and do-while loop.

  1. b and d

  2. a, b and d

  3. only c

  4. all of these

  5. none of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

‘;’ is given after while in do-while loop whereas ‘;’ is not given after while in while loop