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

Sequences and Loops

שאלות 10

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

  1. רב־ברירהמדעי המחשבalgorithmsblock sequencingrobot commandsdrawing shapesorder of execution

    Order of blocks

    A robot must draw a square. Which order of block commands makes the robot draw a square correctly?

    1. Turn right, move forward, move forward, turn right

    2. Move forward, move forward, move forward, move forward

    3. Move forward, turn right, move forward, turn right, move forward, turn right, move forward, turn right

    4. Turn right, turn right, move forward, move forward


    A square has four sides and four corners. Think about what the robot does at each side before turning.
  2. רב־ברירהמדעי המחשבsequencesblock codingprogram flowalgorithmsblock execution order

    What is a sequence?

    In block-based coding, what does it mean when blocks run in a sequence?

    1. The blocks run at the same time, all together

    2. The blocks run only when the user clicks each one

    3. The blocks run one after another, from top to bottom

    4. The blocks run in random order chosen by the computer


    Think about how you read a list of instructions on a page.
  3. רב־ברירהמדעי המחשבrepeat blockscode efficiencyloopsblock codingmaintainability

    Repeat block purpose

    Why would a programmer use a repeat block instead of copying the same move block many times?

    1. It makes the computer run faster by skipping steps

    2. It removes the need for any sequence of blocks

    3. It makes the code shorter and easier to change

    4. It stops the program from ever having errors


    Imagine writing the same instruction ten times versus writing it once with a number.
  4. רב־ברירהמדעי המחשבrepeat loopssprite movementturning anglesblock codingloop count

    Loop count

    A sprite has this program: repeat 5 times, move 10 steps and turn 72 degrees. How many times does the move block run?

    1. 72

    2. 4

    3. 5

    4. 10


    The repeat block tells the computer how many times to run the blocks inside it.
  5. רב־ברירהמדעי המחשבblock sequencingsprite movementlogic errorstroubleshootingcoding bugs

    Finding a bug

    A program should make a cat walk to the edge of the screen, but the cat stops too early. Which kind of problem is this?

    1. A broken computer screen

    2. A missing sound file

    3. A logic or sequence error in the blocks

    4. A problem with the internet connection


    Look at the blocks in the program and ask whether they are in the right order or have the right numbers.
  6. רב־ברירהמדעי המחשבdebuggingבדיקות תוכנהcoding basicserror fixingprogram errors

    Debugging meaning

    What does debugging mean in programming?

    1. Finding and fixing errors in a program

    2. Adding colors to the background of a project

    3. Deleting a program from the computer

    4. Writing a new program from scratch


    The word bug refers to a mistake, so think about what you do when you look for mistakes.
  7. רב־ברירהמדעי המחשבforever loopinfinite loopsblock programming

    Forever loop

    What happens when a forever block contains a move block and nothing else is added to stop it?

    1. The move block is removed from the program automatically

    2. The move block runs exactly once and then the program ends

    3. The computer changes the block into a sound block

    4. The move block keeps running again and again until the program is stopped


    A forever loop has no number on it, so it does not have a set end.
  8. רב־ברירהמדעי המחשבdebuggingblock programmingprogram testing

    Testing a program

    Which step is the best way to test whether a block program works as planned?

    1. Delete the last block and never run the program again

    2. Run the program and watch what each block does, comparing it to the plan

    3. Guess the answer without running the program

    4. Change the color of every block before running it


    Think about how you can check if the program does what you wanted it to do.
  9. רב־ברירהמדעי המחשבnested loopsrepeat blocksprogram execution

    Nested loops

    A program repeats 3 times a block that contains a repeat 4 times loop with a move block inside. How many times does the move block run in total?

    1. 3

    2. 12

    3. 4

    4. 7


    For each of the 3 outer repeats, the inner loop runs its own set of repeats.
  10. רב־ברירהמדעי המחשבblock sequencingprogram orderalgorithms

    Order matters

    A program has the blocks: say Hello, then wait 2 seconds, then move 50 steps. Later the same blocks are placed as: move 50 steps, then say Hello, then wait 2 seconds. What is true about the two programs?

    1. The first program is always faster than the second

    2. The second program cannot run because the order is wrong

    3. They can behave differently because the order of the blocks is different

    4. They always behave exactly the same because the same blocks are used


    In a sequence, the computer follows the blocks in the order they appear, from top to bottom.

פרטים

Basic coding sequences, repeat loops and simple debugging with block-based code for young learners.
מקצועות
מדעי המחשב
קהל יעד
בית ספר יסודי · כיתות ב׳–ד׳
רמת קושי
2 מתוך 10
שפה
אנגלית
מי יכול לראות
כולם
הושלם על ידי AI
מה שמסומן בניצוץ נוסף על ידי AI.
נוצר באמצעות AI
Claude Haiku 5.5
נוצר

תגובות

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