5.1-5.6 Flashcards Preview

Computer Science > 5.1-5.6 > Flashcards

Flashcards in 5.1-5.6 Deck (14)
Loading flashcards...
1
Q

To __ an value means to increase it by one, and to _\ a value means to decrease it by one

A

Increment, decrement

2
Q

When the increment or decrement operator is placed before the operand, the operator is being used in __ mode

A

Prefix

3
Q

When the increment or decrement is placed after the operand

A

Postfix

4
Q

The statement or block that is repeated is known as the __ of the loop

A

Body

5
Q

Each repetition of a loop is known as an

A

Iteration

6
Q

A loop that evaluates it test expression before each repetition

A

Pretest

7
Q

A loop that evaluates it test expression after the repetition

A

Posttest

8
Q

A loop that does not have a way of stopping is called

A

Infinite

9
Q

A ___ is a variable that counts the number of times a loop repeats

A

Counter

10
Q

A ___ is a sum of numbers that accumulates with each iteration of a loop

A

Running total

11
Q

A ___ is a variable that is initialized to some starting value, usually zero, and then has numbers added to it in each iteration of a loop

A

Accumulator

12
Q

The __ loop always iterates at least once

A

Do while

13
Q

The ___ and ___ will not iterate at all if if their test expressions are false to start with

A

While and for

14
Q

The ___ loop is ideal for situations that require a counter

A

For