90.6k views
2 votes
A ____ is a structure that allows repeated execution of a block of statements.

a.
loop control

b.
loop

c.
body

d.
Boolean expression

1 Answer

5 votes

Answer:

loop

Step-by-step explanation:

Loop is the one which is used to execute the specific statement again and again until the condition is true.

In the programming, there are 3 basic loop used.

1. for loop

Syntax:

for(initialization, condition, increment/decrement)

{

statement;

}

the above statement execute until the condition in the for loop true when it goes to false, the loop will terminate.

2. while loop

Syntax:

initialization;

while(condition)

{

statement;

increment/decrement;

}

it is work same as for loop and the increment/decrement can be write after or before the statement.

3. do while

syntax:

initialization;

do

{

statement;

increment/decrement;

}while(condition);

here, the statement execute first then, it check the condition is true or not.

so, if the condition is false it execute the statement one time. this is different with other loops.

User Roman Tkachuk
by
6.4k points