CHAP 5 REPETITION STRUCTURES Flashcards

(8 cards)

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

THERE ARE THREE REPETITION STRUCTURES IN C++

A

while, do-while, for

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

initialization

[ ]
{
process - change
}

[ ] (check)

A

do - while

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

can also be used to jump out of a loop.

A

break

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

[ ] (initialization, check, change);

{
process
}

A

for

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

initialization

[ ] (check);

{
process - change
}

A

while

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

repeating a block of code until a condition is met.

A

Repetition

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

These three steps are essential for looping structures.

A

initialization
check
change

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