Scratch Programming Flashcards
What are the three Programming Constructs?
Sequencing, Selection and Iteration.
What is the definition of a Sequencing Program?
Sequencing is where the program code is executed step by step in the order it is written.
What is the name of the programming construct where the program code is executed step by step in the order it is written?
Sequencing
What is the definition of a Selection Program?
Selection is where the computer makes a decision based on an event or condition given in the code. And example of selection is ‘if else’.
What is the name of the Programming Construct where the computer makes a decision based on an event or condition given in the code?
Selection
What is the definition of an Iteration Program?
Iteration is where the computer repeats (also known as a loop) the code inside a repeat/forever command until it is told to stop.
What is the name of the Programming Construct where the computer repeats the code inside a repeat/forever command until it is told to stop?
Iteration
What are the three types of Iteration?
Repeat for a set number of times, Repeat forever and Repeat until a condition/event happens.
What are the two types of Movement?
Automatic movement and Key Controlled movement.
What is the definition of automatic movement?
This is when a sprite moves automatically without input from the user.
What is the type of movement when a sprite moves automatically without input from the user.
Automatic movement
What is the definition of Key Controlled movement?
This is when the user presses keys on the keyboard to control the sprite moving around the screen.
What is the type of movement when the user presses keys on the keyboard to control the sprite moving around the screen?
Key Controlled movement
What is the function of Variables?
Variables are used to store data that may change whilst the program is running. An example of this in Scratch is a score card in a game.
What is used to store data that may change whilst the program is running?
Variables