Chapter 5 - Iterations Flashcards

1
Q

A variable used in a loop to add up or accumulate a result.

A

Accumulator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

A variable used in a loop to count the number of times something happened. We initialize a counter to zero and then increment the counter each time we want to “count” something.

A

Counter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

An update that decreases the value of a variable.

A

Decrement

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

An assignment that gives an initial value to a variable that will be updated.

A

Initialize

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

An update that increases the value of a variable (often by one).

A

Increment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A loop in which the terminating condition is never satisfied or for which there is no terminating condition.

A

Infinite Loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Repeated execution of a set of statements using either a function that calls itself or a loop.

A

Iteration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly