Shared Flashcard Set

Details

05-Iteration
Python for Informatics - Dr. Charles Severance
7
Computer Science
Not Applicable
08/09/2015

Additional Computer Science Flashcards

 


 

Cards

Term
accumulator
Definition
A variable used in a loop to add up or accumulate a result.
Term
counter
Definition
A variable used in a loop to count the number of times something hap- pened. We initialize a counter to zero and then increment the counter each time we want to “count” something.
Term
decrement
Definition
An update that decreases the value of a variable.
Term
initialize
Definition
An assignment that gives an initial value to a variable that will be updated.
Term
increment
Definition
An update that increases the value of a variable (often by one).
Term
infinite loop
Definition
A loop in which the terminating condition is never satisfied or for which there is no terminating condition.
Term
iteration
Definition
Repeated execution of a set of statements using either a function that calls itself or a loop.
Supporting users have an ad free experience!