1/12
Flashcards covering key concepts from the lecture on loops and iteration in computer programming.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Loops
Structures in programming that repeat a set of instructions until a specified condition is met.
Repetition
The act of doing something multiple times to automate tasks and make processes easier.
Control Variable
A variable that is used to control the flow of a loop, typically initialized at the start.
Continuing Condition
A boolean condition evaluated at the beginning of each iteration of a loop to determine if it should continue.
Iteration
One complete execution of the loop body.
While Loop
A loop that continues to execute as long as a specified condition is true.
Infinite Loop
A loop that runs indefinitely because the terminating condition is never satisfied.
For Loop
A loop that is used when the number of iterations is known beforehand, iterating over a range of values.
Break Statement
A command used to exit a loop immediately.
Continue Statement
A command that skips the current iteration and continues with the next iteration of the loop.
Range Function
A built-in function that generates a sequence of numbers, often used with for loops for iteration.
Nesting Loops
The practice of placing one loop inside another loop, allowing for more complex iterative processes.
Psuedocode
An outline of the logic of a program, written in plain language to facilitate coding.