Podcast
Questions and Answers
In Scratch, what is the term for the area where sprites perform actions?
In Scratch, what is the term for the area where sprites perform actions?
What is the name given to a character that can be coded in Scratch?
What is the name given to a character that can be coded in Scratch?
Which of the following best describes Scratch as an application?
Which of the following best describes Scratch as an application?
In Scratch, which element is used to store values like points that can be modified during a project?
In Scratch, which element is used to store values like points that can be modified during a project?
Signup and view all the answers
What type of block is used to initiate the start of a script in Scratch?
What type of block is used to initiate the start of a script in Scratch?
Signup and view all the answers
Which type of block can be used above and below a block?
Which type of block can be used above and below a block?
Signup and view all the answers
What is the primary purpose of C-shaped blocks in Scratch?
What is the primary purpose of C-shaped blocks in Scratch?
Signup and view all the answers
Which type of blocks are used to represent a yes or no in Scratch?
Which type of blocks are used to represent a yes or no in Scratch?
Signup and view all the answers
In Scratch, which type of block is used to terminate a script?
In Scratch, which type of block is used to terminate a script?
Signup and view all the answers
What is the main purpose of using flowcharts when writing complex programs?
What is the main purpose of using flowcharts when writing complex programs?
Signup and view all the answers
In a flowchart, what shape typically represents a decision?
In a flowchart, what shape typically represents a decision?
Signup and view all the answers
In Scratch, which block is used to get a user's input?
In Scratch, which block is used to get a user's input?
Signup and view all the answers
What is the purpose of the repeat X times
block in Scratch?
What is the purpose of the repeat X times
block in Scratch?
Signup and view all the answers
What is a key characteristic of a forever
loop?
What is a key characteristic of a forever
loop?
Signup and view all the answers
What is the main difference between a repeat until
loop and a repeat X times
loop?
What is the main difference between a repeat until
loop and a repeat X times
loop?
Signup and view all the answers
In the example of generating every fifth number, what is the variable used for?
In the example of generating every fifth number, what is the variable used for?
Signup and view all the answers
In creating the 'Race of 2 Sprites' game, what is the purpose of the 'Finish Line' sprite?
In creating the 'Race of 2 Sprites' game, what is the purpose of the 'Finish Line' sprite?
Signup and view all the answers
In the 'Race of 2 Sprites' game, how is the speed of Avery determined?
In the 'Race of 2 Sprites' game, how is the speed of Avery determined?
Signup and view all the answers
What type of loop is used to control sprite movement in the 'Race of 2 Sprites' game?
What type of loop is used to control sprite movement in the 'Race of 2 Sprites' game?
Signup and view all the answers
If you wanted a sprite to move back and forth repeatedly between two points without stopping, which loop would you use?
If you wanted a sprite to move back and forth repeatedly between two points without stopping, which loop would you use?
Signup and view all the answers
Signup and view all the answers
A 'stage' in Scratch is where characters move during a project.
A 'stage' in Scratch is where characters move during a project.
Signup and view all the answers
A 'sprite' is a block of code used to make characters move.
A 'sprite' is a block of code used to make characters move.
Signup and view all the answers
Hat blocks can only be placed on the bottom of scripts.
Hat blocks can only be placed on the bottom of scripts.
Signup and view all the answers
Stack blocks cannot be placed above other blocks in a script.
Stack blocks cannot be placed above other blocks in a script.
Signup and view all the answers
C blocks are used for making the code repeat only once.
C blocks are used for making the code repeat only once.
Signup and view all the answers
Boolean blocks are used to perform complex mathematical calculations.
Boolean blocks are used to perform complex mathematical calculations.
Signup and view all the answers
Reporter blocks can hold both numeric and string, and can be inserted inside of other blocks when another block requires a numerical value.
Reporter blocks can hold both numeric and string, and can be inserted inside of other blocks when another block requires a numerical value.
Signup and view all the answers
Cap blocks are used at the beginning of scripts.
Cap blocks are used at the beginning of scripts.
Signup and view all the answers
Motion blocks can only control how a sprite looks, not actual movement.
Motion blocks can only control how a sprite looks, not actual movement.
Signup and view all the answers
Flowcharts are used to plan the logic of complex programs before coding
Flowcharts are used to plan the logic of complex programs before coding
Signup and view all the answers
The ask...and wait
block in Scratch will display a text box where the user can input a response to a question.
The ask...and wait
block in Scratch will display a text box where the user can input a response to a question.
Signup and view all the answers
In Scratch, only the built-in answer
variable can store a user's response and it cannot be copied to another variable.
In Scratch, only the built-in answer
variable can store a user's response and it cannot be copied to another variable.
Signup and view all the answers
The repeat 5
block is an example of a conditional loop in Scratch.
The repeat 5
block is an example of a conditional loop in Scratch.
Signup and view all the answers
A forever
loop will execute its contained code an infinite amount of times until the program is exited or the loop is otherwise stopped.
A forever
loop will execute its contained code an infinite amount of times until the program is exited or the loop is otherwise stopped.
Signup and view all the answers
In the example that creates a sequence of every fifth number (5, 10, 15...), the loop will stop when the displayed number exceeds $100$.
In the example that creates a sequence of every fifth number (5, 10, 15...), the loop will stop when the displayed number exceeds $100$.
Signup and view all the answers
In Scratch, a variable can be set to a random value using the random block.
In Scratch, a variable can be set to a random value using the random block.
Signup and view all the answers
In the race of 2 sprites game, Avery and Rover will always move at the same speed.
In the race of 2 sprites game, Avery and Rover will always move at the same speed.
Signup and view all the answers
A flowchart for a program that computes the area of a circle would have a diamond shape to calculate the value of Pi.
A flowchart for a program that computes the area of a circle would have a diamond shape to calculate the value of Pi.
Signup and view all the answers
If you need to repeatedly move a sprite until it touches another sprite, you could use a repeat until
loop for that.
If you need to repeatedly move a sprite until it touches another sprite, you could use a repeat until
loop for that.
Signup and view all the answers
In the 'Race of 2 Sprites' game, the sprites stop moving once they move off the visible stage.
In the 'Race of 2 Sprites' game, the sprites stop moving once they move off the visible stage.
Signup and view all the answers
What is the general term for a set of instructions grouped together to perform a task, commonly used in many programming languages?
What is the general term for a set of instructions grouped together to perform a task, commonly used in many programming languages?
Signup and view all the answers
Name two categories of blocks in Scratch used to control a sprite's appearance other than its costume.
Name two categories of blocks in Scratch used to control a sprite's appearance other than its costume.
Signup and view all the answers
Besides movement, what else can the 'Motion' category control?
Besides movement, what else can the 'Motion' category control?
Signup and view all the answers
What is the primary purpose of blocks in the 'Events' category?
What is the primary purpose of blocks in the 'Events' category?
Signup and view all the answers
What is one block type found in the 'Control' category, which is unique to using conditionals?
What is one block type found in the 'Control' category, which is unique to using conditionals?
Signup and view all the answers
In Scratch, how are the 'Sensing' blocks mainly used?
In Scratch, how are the 'Sensing' blocks mainly used?
Signup and view all the answers
What type of block in the 'Variables' category is used to store data?
What type of block in the 'Variables' category is used to store data?
Signup and view all the answers
What does a flowchart use to represent each step of a program?
What does a flowchart use to represent each step of a program?
Signup and view all the answers
If you needed a sprite to repeat a series of movements forever, what kind of loop would you use?
If you needed a sprite to repeat a series of movements forever, what kind of loop would you use?
Signup and view all the answers
In a program that uses the ask...and wait
block, how can the user input be accessed?
In a program that uses the ask...and wait
block, how can the user input be accessed?
Signup and view all the answers
In a flowchart, what shape represents a process or action step?
In a flowchart, what shape represents a process or action step?
Signup and view all the answers
In Scratch, after using the ask...and wait
block, where is the user's input stored?
In Scratch, after using the ask...and wait
block, where is the user's input stored?
Signup and view all the answers
What type of loop is best used when you need to repeat a block of code a specific number of times?
What type of loop is best used when you need to repeat a block of code a specific number of times?
Signup and view all the answers
Which type of loop continues executing until a specific condition becomes true?
Which type of loop continues executing until a specific condition becomes true?
Signup and view all the answers
In the example of generating every fifth number, what happens when the counter exceeds 50?
In the example of generating every fifth number, what happens when the counter exceeds 50?
Signup and view all the answers
In the 'Race of 2 Sprites' game, is the starting position for Avery and Rover the same?
In the 'Race of 2 Sprites' game, is the starting position for Avery and Rover the same?
Signup and view all the answers
In the 'Race of 2 Sprites', is the AverySpeed
variable initialized to a set value or a random value?
In the 'Race of 2 Sprites', is the AverySpeed
variable initialized to a set value or a random value?
Signup and view all the answers
In the 'Race of 2 Sprites' game, what condition causes the sprites to stop moving?
In the 'Race of 2 Sprites' game, what condition causes the sprites to stop moving?
Signup and view all the answers
What type of loop could you use if you need to repeat something forever?
What type of loop could you use if you need to repeat something forever?
Signup and view all the answers
In the race of 2 sprites game, is the RoverSpeed
variable set independently of AverySpeed
?
In the race of 2 sprites game, is the RoverSpeed
variable set independently of AverySpeed
?
Signup and view all the answers
The area in which sprites perform a given task is called the ______.
The area in which sprites perform a given task is called the ______.
Signup and view all the answers
A character to be coded in Scratch is called a ______.
A character to be coded in Scratch is called a ______.
Signup and view all the answers
______ is a non-textual program application.
______ is a non-textual program application.
Signup and view all the answers
A ______ can store values like points that can be modified during a project.
A ______ can store values like points that can be modified during a project.
Signup and view all the answers
______ blocks are used to start a script in Scratch.
______ blocks are used to start a script in Scratch.
Signup and view all the answers
______ blocks can be added above and below another block in a script.
______ blocks can be added above and below another block in a script.
Signup and view all the answers
______ blocks are C-shaped and are used in conditional programming.
______ blocks are C-shaped and are used in conditional programming.
Signup and view all the answers
______ blocks represent yes or no values used in logic.
______ blocks represent yes or no values used in logic.
Signup and view all the answers
______ blocks are used to end scripts in Scratch.
______ blocks are used to end scripts in Scratch.
Signup and view all the answers
When writing programs, ______ help to work out the flow and logic of the programs first.
When writing programs, ______ help to work out the flow and logic of the programs first.
Signup and view all the answers
In a flowchart, a rounded rectangle typically represents the ______ or end of a process.
In a flowchart, a rounded rectangle typically represents the ______ or end of a process.
Signup and view all the answers
In Scratch, the 'ask...and wait' block can be used to display a box for user ______.
In Scratch, the 'ask...and wait' block can be used to display a box for user ______.
Signup and view all the answers
In Scratch, a user's text entry in response to the 'ask' block is stored in the ______ variable.
In Scratch, a user's text entry in response to the 'ask' block is stored in the ______ variable.
Signup and view all the answers
A repeat X times
block in Scratch will repeat its contents a ______ number of times.
A repeat X times
block in Scratch will repeat its contents a ______ number of times.
Signup and view all the answers
A forever
loop in Scratch will execute its code an ______ number of times.
A forever
loop in Scratch will execute its code an ______ number of times.
Signup and view all the answers
The repeat until
loop will continue instructions until a specific ______ is met.
The repeat until
loop will continue instructions until a specific ______ is met.
Signup and view all the answers
In the 'Every Fifth Number' loop example, a variable called ______ is initialized to 5.
In the 'Every Fifth Number' loop example, a variable called ______ is initialized to 5.
Signup and view all the answers
In the 'Race of 2 Sprites' game, the 'Finish Line' sprite serves as a ______ for sprite movement.
In the 'Race of 2 Sprites' game, the 'Finish Line' sprite serves as a ______ for sprite movement.
Signup and view all the answers
In the 'Race of 2 Sprites' game, the variable AverySpeed
is set to a ______ number between 5 and 10.
In the 'Race of 2 Sprites' game, the variable AverySpeed
is set to a ______ number between 5 and 10.
Signup and view all the answers
The 'Race of 2 Sprites' uses a conditional loop so that the sprites keep moving until they ______ the 'Finish Line'.
The 'Race of 2 Sprites' uses a conditional loop so that the sprites keep moving until they ______ the 'Finish Line'.
Signup and view all the answers
Match the following block types in Scratch with their primary function:
Match the following block types in Scratch with their primary function:
Signup and view all the answers
Match the following Scratch block categories with the actions they control:
Match the following Scratch block categories with the actions they control:
Signup and view all the answers
Match the loop types in Scratch with their behavior:
Match the loop types in Scratch with their behavior:
Signup and view all the answers
Match the following Scratch terms with their definitions:
Match the following Scratch terms with their definitions:
Signup and view all the answers
Match the following block categories with the types of blocks they contain:
Match the following block categories with the types of blocks they contain:
Signup and view all the answers
Study Notes
Coding with Scratch
- Scratch is a program application for coding
- It has different block categories for coding (e.g., Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables)
- Sprites are characters to be coded in Scratch
- The stage is where the sprites perform a given task
- Variables can be used to store and access data (e.g., storing points or other numerical or textual information)
- Events are actions or situations that happen in a program (e.g., when a green flag is clicked, or when a sprite touches another sprite)
- Control blocks control the order of events in a script (e.g., "repeat until", "forever", "if/else")
- Sensing blocks are used to detect situations like when sprites touch each other or the mouse pointer, or check if a condition is true.
- Operators blocks are used for mathematical operations. (e.g., pick random numbers).
- Scratch 3.0 can be used on mobile devices
Flowcharts and Conditional Looping
- Flowcharts use diagrams to show steps in a program
- Each step is shown in a rectangle
- Decisions are shown in a diamond shape
- Flowcharts help to plan complex programs
- Scratch uses blocks to translate a flowchart for coding.
- Input is received using an "ask" block, which creates a variable that can be used in conditional statements.
- The "if...else" statement in Scratch translates to the Yes and No arrows from a flowchart
- Looping repeats specific blocks until a certain condition is met, based on the flowchart (e.g., repeat until a variable reaches a certain value, forever loops).
- A dry run (checking the logic step-by-step) is advised when using flowcharts
Loops
- Repeat X times block repeats a sequence of blocks for a set number of times
- Forever block repeats a sequence of blocks infinitely
- Repeat until block repeats a sequence of blocks until a specific condition is true
- The repeat loop allows a program to repeat an action multiple times
- Variables are often used with loops to keep track of a counter.
- Conditional loops allow the loop to run only if a specific condition is true.
Variables and Loops
- Variables are used to store data and used in loops to perform actions (e.g., store user input from an "Ask" block, store values for calculation in loops)
- Important to initialize variables before use, such as setting variables to initial values.
- Loops and variables are very often used together.
- Variables can be used to control the behavior of loops.
- Variables are important for storing, updating and using data during a program.
Game 1: Race of 2 Sprites
- Sprites can be moved, have their appearance changed, and use random numbers for speed adjustments. (e.g., generate a random number using "pick random 5 to 10").
- The program includes a loop to make sprites move based on speed.
- Sprites move until they reach a defined finish line (using "touching" block)
- Cartesian coordinates are used to describe sprite positions on the stage.
- X and Y values are used to position sprites.
- Sprites automatically stop when they reach the finish line.
- Variables record sprite speed (e.g., AverySpeed).
Game 2: To the Moon!
- The program includes backdrop switching and sprite movement.
- It uses specific points on the screen for sprite positions (using "go to x:y: coordinates").
- The sprite's direction can be changed ("point in direction").
- The sprite's costume or appearance can change during the program ("switch costume").
- The program involves movement, turning and landing to simulate a rocket's journey to the moon. (e.g., using "glide to x, y for seconds").
- The program includes the use of a loop to control the rocket's turning actions.
- The program displays messages to indicate landing with "say" commands.
- The program uses the "switch backdrop" block to change the background image.
- The program uses the "switch costume" to change a sprite's appearance.
- The Cartesian coordinate system to position the rocket
- The program uses the "repeat until" loop.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
This quiz explores the fundamentals of coding using Scratch, focusing on block categories, sprites, and the significance of variables and events. Additionally, it covers the use of flowcharts for planning complex programs and translating them into Scratch scripts. Test your knowledge and improve your coding skills!