Basic Programming Knowledge
Basic Scratch
Loops
Conditions/Logic
Data Types
100

What is an algorithm?

a set of sequential steps

100

What is an event?

They signal when the program should start

100
What do loops do?

They repeat over code

100

what do conditions do?

when you do something if the statement is true and something else if it is false
100
what is a variable?
something to store information
200

What is a programming language?

a language for communicating with machines. Each command has only one meaning

200

Give 2 examples of events

possible answers: when flag clicked and when space key pressed

200

which code block creates an infinite loop?

forever loop blocks in scratch

200

what will this program do?

x = 5

if x < 3:

   say "Hi"

else:

   say "Bye"

it will say Bye

200

what are the 3 different data types?

number, string, logic

300

What is the purpose of programming?

To create a computer program that can accomplish a task

300

What do coordinates help us with?

Positioning and location

300

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

300

Is this true or false?

5<6 AND 7>8

false

300
what are the two logic data type values?

true and false

400

What is a bug in a program?

An error in the code

400

Do x values on a coordinate grid correspond to horizontal or vertical values?

horizontal 

400

what is a conditional loop?

A loop that will stop when a condition becomes true

400

is this true or false?

8 !> 10

true

400

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

500

What is a procedure in scratch?

A way for a programmer to create their own block of code (creating their own algorithm)

500

when will this loop stop?:

repeat until x = 5:

   move forward

   x = x + 1


when x is equal to 5