Feb.21,2019 Flashcards

1
Q

Loop

A

A loop is 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

A condition is code that 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

A control structure 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
6
Q

If Statement

A

An if statement lets you ask a question to the program and only run code if the answer is true

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

If Else Statement

A

Control structure that lets us do either one section of code or another depending on a test

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