1 Answers
📚 Quick Study Guide
- 🔄 The `Repeat` block in Scratch is a Control block used to execute a set of instructions a specific number of times.
- 🔢 It takes a numerical input, which determines precisely how many times the script inside the block will run.
- 🎨 Common uses include drawing shapes (like squares, triangles, circles), creating simple animations (moving a sprite back and forth), or repeating sound effects.
- ⏱️ It helps make code significantly more efficient, concise, and easier to read by avoiding redundant blocks of identical code.
- 🛑 Unlike `Forever` blocks, `Repeat` blocks have a definite end, executing the code a fixed number of times and then allowing the script to continue to subsequent blocks.
- 💡 A common pattern for drawing regular polygons is to use `Repeat (number of sides)` then `Move (length) steps` and `Turn (360 / number of sides) degrees`.
🧠 Practice Quiz
Question 1:
Which of the following scenarios is BEST suited for using a `Repeat` block in Scratch?
- Making a sprite move continuously across the screen forever.
- Drawing a perfect square.
- Waiting for a specific key press before performing an action.
- Checking if two sprites are touching.
Question 2:
A Scratch script uses a `Repeat 10` block. If there's a `move 10 steps` block inside, how many total steps will the sprite move?
- 10 steps
- 100 steps
- 1 step
- Indefinitely
Question 3:
To draw an equilateral triangle using the `Repeat` block, what values should typically be used for the `Repeat` count and the `Turn` degrees?
- Repeat 3, Turn 90 degrees
- Repeat 4, Turn 90 degrees
- Repeat 3, Turn 120 degrees
- Repeat 5, Turn 72 degrees
Question 4:
What is the primary advantage of using a `Repeat` block over manually duplicating code blocks?
- It makes the sprite move faster.
- It allows for more complex conditional logic.
- It makes the script shorter, cleaner, and easier to modify.
- It automatically adds sound effects.
Question 5:
Consider a sprite that needs to say "Hello!" five times, with a 1-second pause after each "Hello!". Which combination of blocks inside a `Repeat 5` block would achieve this?
- `say "Hello!"`, `wait 5 seconds`
- `say "Hello!"`, `wait 1 seconds`
- `wait 1 seconds`, `say "Hello!"`
- `say "Hello!"` only
Question 6:
If a `Repeat` block is nested inside another `Repeat` block, how do you calculate the total number of times the innermost code executes?
- Add the repeat counts.
- Subtract the repeat counts.
- Multiply the repeat counts.
- Divide the repeat counts.
Question 7:
Which Scratch block is similar to `Repeat` but executes its code indefinitely?
- `If...then`
- `Forever`
- `Wait until`
- `Stop all`
Click to see Answers
1. B
2. B
3. C
4. C
5. B
6. C
7. B
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! 🚀