דילוג לתוכן
מבחן 10 שאלות

Loops in Scratch

שאלות 10

מפתח התשובות מוצג למורים מחוברים.

  1. רב־ברירהמדעי המחשבשפות תכנותrepeat blockloopsScratchscript executionblock sequencing

    What the repeat block does

    In Scratch, what happens to the blocks placed inside a repeat 10 block?

    1. They are deleted from the script

    2. They run 10 seconds after the green flag is clicked

    3. They run only once, and the number 10 is ignored

    4. They run 10 times in a row


    Think about what the number inside the repeat block tells the computer to do.
  2. רב־ברירהמדעי המחשבשפות תכנותscratch blocksrepeat blockevent blocksloop blocksmotion blocks

    Finding a loop block

    Which of these Scratch blocks is a loop block?

    1. when green flag clicked

    2. repeat 10

    3. move 10 steps

    4. wait 1 seconds


    A loop block is in the Control category and makes a group of blocks run again and again.
  3. רב־ברירהמדעי המחשבשפות תכנותloopsturninggeometric shapesScratchmovement blocks

    Drawing a shape with a loop

    A sprite runs this script: repeat 4 times, then move 50 steps and turn 90 degrees. Which shape does the sprite draw on the stage?

    1. A triangle

    2. A square

    3. A star

    4. A circle


    Count the sides: each side is one move, and each turn is a corner. How many corners does the shape have?
  4. רב־ברירהמדעי המחשבשפות תכנותforever looprepeat blocksScratchprogram controlstopping scripts

    Purpose of the forever block

    What is the main purpose of the forever block in Scratch?

    1. To run the blocks inside it again and again until the script is stopped

    2. To run the blocks inside it exactly one time

    3. To make the sprite disappear from the stage

    4. To pause the project for a fixed number of seconds


    Look at the word 'forever' and think about when the loop would end.
  5. רב־ברירהמדעי המחשבשפות תכנותloopsrepeat blockvariablescountingScratch

    Counting with a loop

    A script sets x to 0, then uses repeat 5 with the block change x by 1 inside the loop. What is the value of x after the loop finishes?

    1. 4

    2. 1

    3. 6

    4. 5


    Each time the loop runs, x increases by 1. How many times does the loop run?
  6. רב־ברירהמדעי המחשבrepeat untilscratch blocksconditional loops

    Repeat until a condition

    Which block lets a script keep repeating its blocks until a certain condition becomes true, such as a sprite touching the edge of the stage?

    1. forever

    2. wait until

    3. repeat 10

    4. repeat until


    The block you need has a name that describes both repeating and stopping when something happens.
  7. רב־ברירהמדעי המחשבnested loopsscratch loopscounting repetitions

    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?

    1. 34

    2. 7

    3. 12

    4. 3


    For each run of the outer loop, the inner loop runs completely. Multiply the number of times each loop repeats.
  8. רב־ברירהמדעי המחשבloopscode efficiencyscratch programming

    Benefit of using loops

    Why do programmers often use a loop instead of copying the same block many times?

    1. Loops remove the need for a green flag

    2. Loops are required for every Scratch project

    3. Loops make the sprite faster than any other block

    4. 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?
  9. רב־ברירהמדעי המחשבforever loopscratch blocksstop all

    Stopping a script

    A sprite is stuck in a forever loop and the project must stop completely. Which Scratch block stops all scripts in the project?

    1. broadcast message1

    2. stop all

    3. wait 1 seconds

    4. hide


    Look in the Control category for a block whose name tells you what it stops.
  10. רב־ברירהמדעי המחשבrepeat blocksprite movementscratch loops

    Loop with a changing movement

    A sprite runs repeat 6 with move 10 steps and then wait 0.5 seconds inside the loop. How many times does the sprite move?

    1. 0 times

    2. 5 times

    3. 6 times

    4. 10 times


    The number on the repeat block tells you how many times the blocks inside it run.

פרטים

A quiz on repeating actions in Scratch: repeat blocks, forever loops and when a loop is useful in a program.
קהל יעד
בית ספר יסודי · כיתות ד׳–ו׳
רמת קושי
3 מתוך 10
שפה
אנגלית
מי יכול לראות
כולם
הושלם על ידי AI
מה שמסומן בניצוץ נוסף על ידי AI.
נוצר באמצעות AI
Claude Haiku 5.5
נוצר

תגובות

  1. אין תגובות עדיין.
© כל הזכויות שמורות