Define a program.
An algorithm that has been coded into something that can be run by a machine.
Clocks, wheels, and roller coasters are all examples of...
loops
Which of the following is not a symbol?
a) *
b) @
c) 1
d) !
e) They are all symbols.
c) 1
True or False: Nested conditionals are not a thing.
False; nested conditionals are in fact a thing
Number of siblings
Personal
Define until.
A command that tells you to do something only up to the point that something becomes true.
A coder is midway through coding a Chromebook. They run the code and realize that they have made an error. What is this error called and what is the process of fixing it?
The error is called a bug and the process of fixing it is called debugging.
Turn this real world scenario into a while loop:
Eating lunch.
ex.
While you are still hungry, you keep eating.
Which is a strong password and why?
a) Abc123!
b) Your birthday
c) kdjIUihdjOI972839
d) i_l0v3.SuShi
e) (Your pet name)_123
d) i_l0v3.SuShi
Home Address
Private
Define a while loop.
A loop that continues to repeat while a condition is true.
Casey scores a goal, so his team gains 2 points. What is this sequence an example of?
Event and Action
What are the 2 parts to a nested loop?
The inner and outer loop.
Private info is info that is unique to you and can be used to identify you (credit card info). Personal info is info that can be true to many others (hair color).
Hair color
Personal
one piece of code is placed inside another
Jon has to mow the lawn, however, he wants to convert the task into a while loop. How can he structure it?
While the grass is tall, keep mowing the lawn.
When a device screen is touched, an app is opened.
What is this structure called?
When (event), (action).
Give an example of a conditional statement that includes an "else" condition.
If (blah blah), then (blah blah), else (blah blah)
Age
Personal
Define a conditional and three parts of it.
(No partial credit!! All or nothing!!)
A conditional is a statement that would only run under certain conditions.
The "if", "then", and "else".
Greg wants to eat a new Mexican restaurant, but if the menu does not have any gluten-free options, he will have to leave, else he could stay and enjoy the food. What is this an example of?
Conditionals
Shelby wants to code a game where a sheep keeps running forward if there is grass, and stops running if there is no grass. She is tired of coding the sheep to move forward for each block. What kind of loop can Shelby use instead?
While loop
What is the difference between an until loop and a while loop?
(Must use the word "condition")
An until loops runs while a condition is false (and ends when the condition is true), while a while loop runs while a condition is true (and ends when the condition is false).
School
Private! Although you go to school with many others, you don't want strangers online to know where you spend most of your day!