Lesson 5 Flashcards
What is an variable?
it is an identifier and is sitting in place for a value.
What is a value?
any type of data.
What does the equal sign do in coding?
Assigning a value.
What is a string?
sorting any kind of data. A string could be “hello”
What is a numeric value?
A number that is only an integer and decimals.
What is a boolean?
a thing that only has two values.
IF THEN ELSE ?
its a conditional statement.
Compound conditionals?
Combining a boolean within one conditional.
Logical Operators?
Things in programming that are words that allow for more precise control. Such as and, or, == (equal to)
What is a loop?
An instruction that is repeated until a condition is reached.
For loop?
A loop will continue unless a condition is meet. Use when you know how many times you want the action repeated.
A while loop?
Runs code as long as a condition is not meet. You use this when you don’t know the exact amount of times the loop should repeat.
What is a nested loop?
Putting one loop inside another loop. Loop 1 minute but in that loop a 60 second loop is going.
What is an event?
It is an action that causes something to happen within a program. These actions allow the program to be interactive.
Procedure?
a piece of code that you can use over and over again. These chunks can be used in different parts of the code.