Repetition Structures Flashcards
1
Q
repeating a block of code until a condition is met.
A
REPETITION
2
Q
THREE REPETITION STRUCTURES IN C++
A
- WHILE STATEMENT
- DO-WHILE STATEMENT
- FOR STATEMENT
3
Q
three steps are essential for looping structures.
A
- Initialized the loop control variable.
- check the loop control variable.
- change the loop control variable.
4
Q
GENERAL FORM:
while(Boolean Expression) { //Executable Statements ⋮ }
A
WHILE statement
5
Q
GENERAL FORM:
do { //Executable Statements ⋮ } while(Boolean Expression);
A
Do-WHILE statement
6
Q
GENERAL FORM:
for(initialization; check condition; increment/decrement) { //Executable Statements ⋮ }
A
for statement
7
Q
The _________ statement can also be used to jump out of a loop.
A
break
8
Q
The _____________ statement breaks one iteration (in the loop), if a specified condition occurs, and continues with the next iteration in the loop.
A
continue