What is an algorithm?
a set of sequential steps
What is an event?
They signal when the program should start
They repeat over code
what do conditions do?
What is a programming language?
a language for communicating with machines. Each command has only one meaning
Give 2 examples of events
possible answers: when flag clicked and when space key pressed
which code block creates an infinite loop?
forever loop blocks in scratch
what will this program do?
x = 5
if x < 3:
say "Hi"
else:
say "Bye"
it will say Bye
what are the 3 different data types?
number, string, logic
What is the purpose of programming?
To create a computer program that can accomplish a task
What do coordinates help us with?
Positioning and location
If we need to catch 5 jewels that are in a line right in front of us, what command should we repeat and how many times?
move forward, 5 times
Is this true or false?
5<6 AND 7>8
false
true and false
What is a bug in a program?
An error in the code
Do x values on a coordinate grid correspond to horizontal or vertical values?
horizontal
what is a conditional loop?
A loop that will stop when a condition becomes true
is this true or false?
8 !> 10
true
If we want to ask the user for their name, their age, and their favorite food and then make a story using their name, age, and favorite food, how many variables should we create?
3 - name, age, favorite food
What is a procedure in scratch?
A way for a programmer to create their own block of code (creating their own algorithm)
when will this loop stop?:
repeat until x = 5:
move forward
x = x + 1
when x is equal to 5