answersLogoWhite

0

while loop and for loop are entry controlled loops as they check looping condition at the entry point.

do while loop is exit controlled loop as it checks looping condition at exit point.

shreeradha@Yahoo.com

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering

What is the fundamental difference between while loops and numeric for loops?

There is no such difference, for and while loops are convertible: in: for (exp1; exp2; exp3) stmt; out: { exp1; while (exp2) { stmt; exp3; }} in: while (exp) stmt; out: for (; exp; ) stmt;


Difference between deterministic and nondeterministic loop?

Deterministic and non-deterministic loops A deterministic loop is predictable. The number of iterations of such a loop are known in advance, even before the loop has started. Most counting loops are deterministic. Before they start, we can say how many times they will execute. A non-deterministic loop is not easily predicted. A loop that is driven by the response of a user is not deterministic, because we cannot predict the response of the user. Non-deterministic loops usually are controlled by a boolean and the number of iterations is not known in advance.


Difference of step up and step down in terms of no of loops in the secondary coil?

If the primary coil has ten loops and the secondary coil has five loops then the secondary coil works as a 50% step down


When would you use a count controlled loop vs. a flag controlled loop?

Counter Loop:Counter loop is a loop which executes statement up to a fixed number of time.In GW FOR ... NEXT loop is used as counter loop.Controlled Loop:Controlled loop is used to extend the statements till a specific condition is satisfied. In GW WHILE ... WEND is used as controlled loop.


What the difference between pretest loop and posttest loops?

The difference is that pre means before and post means after in Latin so it's tested before or after. :)

Related Questions

Which java loops are entry controlled?

The for and while statements are entry-controlled loops. The do-while statement is an exit-controlled loop.


What is the fundamental difference between while loops and numeric for loops?

There is no such difference, for and while loops are convertible: in: for (exp1; exp2; exp3) stmt; out: { exp1; while (exp2) { stmt; exp3; }} in: while (exp) stmt; out: for (; exp; ) stmt;


What is the difference between finale notepad and fruity loops programs?

Finale is for writing sheet music for real instruments. Fruity Loops is for creating electronic music.


What is the difference between radial and ulnar loops?

Why are you posting a question to do with finger print identification in several computer programming wikies.


What is difference between entry controlled and exit controlled loops?

An entry control loop places the conditional expression that terminates the loop at the start of the loop, where it is evaluated before each iteration of the loop. If the expression initially evaluates false, then the loop does not iterate at all and control passes to the next statement following the loop. An exit control loop places the conditional expression at the end of the loop, where it is evaluated after each iteration of the loop. This means that the loop always iterates at least once. Generally, exit control loops are best avoided as conditional expressions are ideally placed up front where they can be seen. This helps make code easier to read and thus easier to maintain. However, there will inevitably be cases where an exit control loop helps to express the logic more clearly. In C there are 3 ways to define a structured iterative loop, using the for, while and do-while statements. Although for and while loops are entry control loops and do-while is an exit control loop, conditional expressions may also be placed anywhere in the body of the loop itself, thus it is possible for a loop to be both entry control and exit control. However, to aid readability and maintainability, it is best to place the conditional expression up front whenever possible.


What is the difference between loops and functions?

LOOP: In loops reusability of the code is restricted to a specific area FUNCTION: In functions reusability of the code is not restricted to specific area.That means you can call the function code from any where in the program


What is the difference between do and while loops in c?

the main difference b/w do and while loops is that do loop will run atleast once even if condition is not satisfied but while loop will not execute even once if condition is not satisfied . this is bcoz in do loop condition is checked after one execution but in while condition is prechecked.


Difference between deterministic and nondeterministic loop?

Deterministic and non-deterministic loops A deterministic loop is predictable. The number of iterations of such a loop are known in advance, even before the loop has started. Most counting loops are deterministic. Before they start, we can say how many times they will execute. A non-deterministic loop is not easily predicted. A loop that is driven by the response of a user is not deterministic, because we cannot predict the response of the user. Non-deterministic loops usually are controlled by a boolean and the number of iterations is not known in advance.


What is the definition for aerobatics?

Aerobatics are fancy movements while flying: controlled dives, stalls, loops and so on.


What are One of the differences between electric and magnetic fields is that electric fields lines always form closed loops?

One key difference between electric and magnetic fields is that electric field lines originate from positive charges and end on negative charges, forming closed loops; whereas, magnetic field lines always form closed loops, never having a starting or ending point.


Difference of step up and step down in terms of no of loops in the secondary coil?

If the primary coil has ten loops and the secondary coil has five loops then the secondary coil works as a 50% step down


What three actions do count-controlled loops typically perform using the counter variable?

Test initialize increment