1 Answers
🧠 Quick Study Guide: Scratch Control Structures
- 📝 What are Control Structures? These are special blocks in Scratch that tell your program *when* and *how many times* to run certain other blocks. They control the flow of your project!
- ⚙️ Sequence: The Default Flow
- ➡️ When you just stack blocks on top of each other, Scratch runs them one after another, from top to bottom. This is the simplest control structure!
- 🔄 Repetition (Loops): Doing Things Over and Over
- 🔢 `repeat ()` block: Runs the blocks inside it a specific number of times. Great for drawing shapes or making a character walk a few steps.
- ♾️ `forever` block: Runs the blocks inside it endlessly until the program stops. Perfect for continuous movement, background music, or checking for constant conditions.
- 🤔 Selection (Conditionals): Making Decisions
- ✅ `if () then` block: Checks if a condition is TRUE. If it is, the blocks inside run once. If not, they are skipped.
- ⚖️ `if () then else` block: Checks if a condition is TRUE. If true, the blocks in the "then" part run. If false, the blocks in the "else" part run instead. This allows for two different outcomes!
- ⏳ `wait until ()` block: Pauses the script until a specific condition becomes TRUE.
- 💡 Why are they important? Control structures make your Scratch projects dynamic, efficient, and interactive. They allow sprites to respond to events, create complex animations, and build engaging games without writing the same code many times!
💡 Practice Quiz: Test Your Scratch Skills!
1. Which Scratch block is used to make a sprite move 10 steps, then say "Hello!" and repeat this sequence exactly 5 times?
A. `forever`
B. `repeat (5)`
C. `if (5) then`
D. `wait until (5)`
2. What type of control structure allows your sprite to make a decision, performing one set of actions if a condition is true, and a different set of actions if it's false?
A. Sequence
B. Repetition
C. Selection (`if/else`)
D. Looping
3. If you want a background music to play constantly throughout your game, which control block would you most likely use to keep the music playing without stopping?
A. `repeat (100)`
B. `if (music playing)`
C. `forever`
D. `wait until (music ends)`
4. What happens if you place a `move 10 steps` block directly above a `say "Hi!"` block without any other control blocks?
A. The blocks will run at the same time.
B. The `say "Hi!"` block will run first, then `move 10 steps`.
C. The `move 10 steps` block will run first, then `say "Hi!"`.
D. The program will stop because there's no control structure.
5. A game character needs to change its costume to 'walking' if a key is pressed, and to 'standing' if no key is pressed. Which control block best fits this scenario?
A. `repeat until`
B. `if () then else`
C. `forever`
D. `wait until`
6. Which of the following is NOT considered a fundamental control structure type in programming?
A. Sequence
B. Repetition (Looping)
C. Debugging
D. Selection (Conditionals)
7. Why are control structures essential for creating complex and interactive Scratch projects?
A. They make the code look prettier.
B. They allow the program to make decisions and repeat actions, saving time and making projects dynamic.
C. They are only used for games, not for animations.
D. They slow down the program by adding extra blocks.
Click to see Answers
✅ Answer Key:
1. B. `repeat (5)`
2. C. Selection (`if/else`)
3. C. `forever`
4. C. The `move 10 steps` block will run first, then `say "Hi!"`.
5. B. `if () then else`
6. C. Debugging
7. B. They allow the program to make decisions and repeat actions, saving time and making projects dynamic.
Join the discussion
Please log in to post your answer.
Log InEarn 2 Points for answering. If your answer is selected as the best, you'll get +20 Points! 🚀