1.

Is there any difference between exit-controlled loop structure and entry-controlled loop structure?(a) Yes(b) NoI had been asked this question during an interview.I would like to ask this question from Looping topic in division Arduino Programming of Arduino

Answer»

Right option is (a) Yes

Explanation: The minimum number of times an entry-controlled LOOP will run if the condition FAILS at FIRST ATTEMPT is 0. However, the minimum number of times an exit-controlled loop will run if the condition fails at first attempt is 1. Here the difference is that in an entry-controlled loop, the condition is checked before entry into the loop structure, while in an exit-controlled loop, the condition is checked after the completion of the loop structure.



Discussion

No Comment Found

Related InterviewSolutions