Loops in Scratch
שאלות 10
מפתח התשובות מוצג למורים מחוברים.
-
What the repeat block does
In Scratch, what happens to the blocks placed inside a repeat 10 block?
They are deleted from the script
They run 10 seconds after the green flag is clicked
They run only once, and the number 10 is ignored
They run 10 times in a row
Think about what the number inside the repeat block tells the computer to do. -
-
-
Purpose of the forever block
What is the main purpose of the forever block in Scratch?
To run the blocks inside it again and again until the script is stopped
To run the blocks inside it exactly one time
To make the sprite disappear from the stage
To pause the project for a fixed number of seconds
Look at the word 'forever' and think about when the loop would end. -
-
-
Nested loops
A script has repeat 3 with another repeat 4 inside it, and the inner loop contains one block that says move 10 steps. How many times is the move 10 steps block run in total?
34
7
12
3
For each run of the outer loop, the inner loop runs completely. Multiply the number of times each loop repeats. -
Benefit of using loops
Why do programmers often use a loop instead of copying the same block many times?
Loops remove the need for a green flag
Loops are required for every Scratch project
Loops make the sprite faster than any other block
Loops make the code shorter and easier to change
Imagine you want to change how many times an action happens. Where would you need to make the change? -
-
פרטים
- מקצועות
- מדעי המחשב נוסף על ידי AI שפות תכנות
- תגיות
- נוסף על ידי AI loops נוסף על ידי AI repeat block נוסף על ידי AI forever loop נוסף על ידי AI conditional loops נוסף על ידי AI program control
- קהל יעד
- בית ספר יסודי · כיתות ד׳–ו׳
- רמת קושי
- 3 מתוך 10
- שפה
- אנגלית
- מי יכול לראות
- כולם
- הושלם על ידי AI
- מה שמסומן בניצוץ נוסף על ידי AI.
- נוצר באמצעות AI
- Claude Haiku 5.5
- נוצר
תגובות