Chapter 4 Key Terms Flashcards
Repetition Structure
Also referred to as a loop, this construct allows for a block of code to be executed or ran multiple times.
Condition-Controlled Loop
A type of loop that only runs if the specified condition remains true.
Counter-Controlled Loop
A type of loop that iterates a certain number of times based on the preset limit.
while Loop
Repeatedly executes code as long as the specified condition is true.
Pretest Loop
A type of loop in which the condition is checked prior to the execution.
Infinite Loop
A type of loop that runs indefinitely.
for Loop
A type of loop used to iterate over a sequence. It will then execute code for each item in that sequence.
range
A built in function that generates number sequences in a specified range. Mostly used in regards to for loops.
iterable
Any object that can return its elements one by one. It allows looping over elements of a sequence or collection.
Target Variable
The variable in which the machine tries to predict or classify.
Accumulator
A variable that is used to accumulate or store intermediate results during the execution of a loop.
Augmented Assignment Operators
A set of operators that combine an arithmetic or bitwise operation with an assignment.
Sentinel
A value used to mark the end of a sequence or condition.
Input Validation
Checking and verifying data entered to ensure that it meets specific criteria before being executed by the program.
Nested Loop
A loop inside of another loop.