A complete, well-defined sequence of steps for completing a task or solving a problem
Algorithm
A type of block that causes other code to run more than one time
Loop
A place to store a value for retrieval and use later
Variable
Removing the specifics that are not relevant in a given context
Abstraction
What's missing for this script to run?
A hat block
Python, Java, and SNAP are examples
Programming language
What block could you use to make the script more descriptive?
A repeat block
A block used to make a choice between executing two different chunks of code
Conditional (if / else block)
Reducing the complexity of an algorithm or process by focusing on the important parts (ex: Drawing an abstract tree instead of drawing every individual leaf)
Detail removal
What block is missing for this script to draw a triangle?
Pen down
An object on the stage that the code can manipulate (move, show, say)
Sprite
A specific loop block in SNAP that keeps running until the script is stopped
Forever
OR, AND, NOT are examples
Boolean operators
Combining a group of related concepts or processes into a single category (ex: a truck, sedan, and a van are all cars)
Generalization
The script below is missing a crucial block to continually move the sprite right when the right arrow is pressed. What is it?
Repeat Forever
When a program produces an expected error, like when user is asked to input a number, but types in a letter, and it says “invalid.”
A loop used inside the body of another loop
Nested loop
Expressions that evaluate to true or false, ex: 5 < 7 AND 4 > 2
Boolean expressions
Breaking a problem down into smaller subtasks, usually to increase readability and/or maintainability
Procedural decomposition
What's wrong with this script? What's one way to fix is?
Trying to store 2 things in 1 variable.
A sequence of instructions or steps, written in a language that can be understood by a computer, that will be used by the computer to complete a task or solve a problem
Program or script
What does this script do?
True or False?
x = 4
y = -3
x == y OR (x > 0 AND y < 0))
True
The goal of abstraction
Efficiency
What's wrong with this script? Name one way to make fix it.
Part of the code will never execute based on the conditional logic