Question: In which of the following cases should a WHILE loop be used in preference to other control statements? It is necessary to repeat a section

In which of the following cases should a WHILE loop be used in preference to other control statements?
It is necessary to repeat a section of code until the value of a variable drops below a specified number.
A block of code has to be repeated for each entry in an array.
A block of code has to be executed once subject to a condition being satisfied.
A block of code has always got to be executed.
A block of code has to be executed 10 times.
 In which of the following cases should a WHILE loop be

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!