Computer GA 2.2 Flashcards

1
Q

-Is a control structure that allows us to specify the repeated execution of a group of program statements a definite number of times
-A variable that serves as an index or counter is used to indicate how many times an enclosed block of statements is to be executed repeatedly

A

Counter-Controlled Loops

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

-The most common type of counter-controlled loop
-Is used when the number of repetitions or iterations is already known before entering the loop

A

The for Loop

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

-Is a loop that tests a condition to determine whether a block of enclosed statements should be executed repeatedly

A

Condition-Controlled Loops

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

-Is the most common example of a loop structure that uses a pre-test
-Quite similar to a for loop; however, at the start of the loop it merely checks the condition

A

The while Loop

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

-Tests the condition at the end of the loop bod

A

Post-test Loop

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

-Is the most common example of a loop structure that uses a post-test

A

The do-while Loop

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