A repeat loop is also called a _ _ _ loop
for
If we are talking about the weight of an elephant, what type should the variable be?
integer
Conditionals are also called _ _ statements
if
What is an argument/parameter in a function?
extra details that you can provide a function to change the way it behaves
An infinite loop is also called a _ _ _ _ _ _ _ loop
What makes a variable name good?
Descriptive names!
Name a type of conditional statement
if
if/else
else/if
If I asked you all, “did you draw an equilateral triangle?”. Your answer would be the _ _ _ _ of the function.
output/return value
A while loop runs when something is (true or false)
true
Name a variable type (i.e what can a variable be)
integer, string, bool
what prints out?
int HeightInInches= 48;
if (HeightInInches > = 50)
printf("You can ride the roller coaster");
else
printf("You need to grow a little more before you can ride");
You need to grow a little more before you can ride
You give a function an _ _ _ _ _, it processes that information and gives an _ _ _ _ _ _
input; output
When does a forever loop end?
When a program is shut down or the program ends
True or false: you can change the value of a variable?
Ex: int myAge= 20;
int myAge= 21;
true
In an else-if statement command #3 is done when if the first condition is not met.
(For example,
if (i'm cold - condition #1)
put on a sweater (command #1)
else if (i'm warm - condition #2)
put on shorts (command #2)
else
wear a shirt and pants (command #3)
)
(true or false)
false; if the first condition is not met move to the second condition.
Why are using functions a good thing to use?
They shorten your code & make it easier to read/understand
Give an example of a while loop
Answers may vary.
What are the three qualities to a variable?
(int myAge= 20)
type, name, and value
Give an example of a real-life else-if statement.
Answers may vary.
What are the four qualities of a function?
define, call, parameter, and return value