Loops 2 Flashcards

1
Q

Loop

A

A way to repeat code in your program

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

While Loop

A

Lets us repeat code as long as something is true

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

Condition

A

Code you put inside an if statement or while-loop

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

Control Structure

A

Lets us change the flow of the code

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

Fencepost Problem

A

A problem when using a while loop where you forget one action at the beginning or the end

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