Which looping process takes the test condition at end of the loop?
Answers
Answered by
0
It is do while loop.
Answered by
2
Hi,
'Do While' loop takes the test condition at the end of the loop.
Whereas, while loop takes the test condition at the begining of the loop.
Explanation: Do-while loop is a exit-control loop i.e it checks the condition after entering the loop and therefore, while using this loop,if the condition is evaluated to be false, then the statements are evaluated atleast once.
On the other hand, while loop is an entry-control loop i.e it checks the condition before entering the loop and therefore, while using this loop,if the condition is evaluated to be false, then the statements are Not evaluated and the control moves to the next block of the statement.
☆So, Your answer is- 'Do-while loop".
'Do While' loop takes the test condition at the end of the loop.
Whereas, while loop takes the test condition at the begining of the loop.
Explanation: Do-while loop is a exit-control loop i.e it checks the condition after entering the loop and therefore, while using this loop,if the condition is evaluated to be false, then the statements are evaluated atleast once.
On the other hand, while loop is an entry-control loop i.e it checks the condition before entering the loop and therefore, while using this loop,if the condition is evaluated to be false, then the statements are Not evaluated and the control moves to the next block of the statement.
☆So, Your answer is- 'Do-while loop".
Similar questions