iteration Flashcards
what is iteration?
Iteration is the process of repeating code.
what are the 2 types of iterations?
count control
condition control
What do count control loops do ?
they reapeat the same steps a specific number of times regardless of the outcome.
What do condition control loops do?
it will keep repeating the loops over and over until it gets its specific result.
key fact
Iteration is the process of repeating steps.
in programming, what is iteration?
it is the repetation of steps within a program.selection is a decision point in a program.
What are the three building blocks to use when designing algorithms?
Sequencing, selection and iteration are the three basic building blocks to use when designing algorithms.
What is iteration?
Iteration is repeating steps in an algorithm. A decision is known as selection.
Why is iteration important?
Iteration is important as it allows us to simplify an algorithm by removing unnecessary steps.
What is another name for iteration?
Another name for iteration is a loop.
What is a condition?
A condition is a situation that is checked every time iteration occurs.
What is meant by testing a condition?
Testing a condition is checking to see if a condition has been met.
How is iteration represented in pseudocode?
Iteration is represented with REPEAT-UNTIL in pseudocode.
How is iteration represented in a flowchart?
Iteration is represented as a decision in a flowchart.
What is a counter used for in iteration?
A counter is used to keep track of how many times the solution has iterated.