Feb.21,2019 Flashcards
1
Q
Loop
A
A loop is a way to repeat code in your program
2
Q
While Loop
A
Lets us repeat code as long as something is true
3
Q
Condition
A
A condition is code that you put inside an if statement or while-loop
4
Q
Control Structure
A
A control structure lets us change the flow of the code
5
Q
Fencepost Problem
A
A problem when using a while loop where you forget one action at the beginning or the end
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
7
Q
If Else Statement
A
Control structure that lets us do either one section of code or another depending on a test