82.3k views
4 votes
In coding terms and action or event you want to repeat multiple times is called a?​

1 Answer

5 votes

Answer:

  • a loop

Step-by-step explanation:

In coding, a loop structure is a set of commands or actions that is repeated multiple times.

Two frequently used loops are the "While" loop and the "For" loop.

In a "While" loop the commands are repeated until the condition is met; thus, you do not fix the number of times the loop will be executed but you set the condition: when the condition is fulfiled the loop ends.

In a "For" loop the commands are repeated a fixed amount of times, which is set before the loop starts.

For instance, if you want to calculate the final grade of your 30 students, you set your " For" to execute the instructions inside the loop from student 1 to student 30, this is 30 times. And if you want to find the first student who has a grade of 90, you set your "While" loop to execute until the condition grade = 90 is met.

User RileyE
by
5.2k points