Chapter 5 Flashcards

1
Q

Repetition structure

A

Also consider as a loop. Repeating process

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

Loop vs Exit loop

A

Loop = While
Exit loop = Until

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

Do loop statement

A

Always contain either while or until

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

Infinite loop

A

loop body does not contain an instruction that will make it false

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

counter

A

numeric variable
example intnum +=1
can only be 0 or 1

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

accumulator

A

numeric variable used for accumulating
example dbltotal

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