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

Coding Basics: Sequences and Loops

שאלות 10

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

  1. רב־ברירהמדעי המחשבalgorithm orderblock codingdrawing shapessequencesrobot commands

    Order of blocks

    A robot must draw a square. Which order of block commands will make it draw the square correctly, starting from the beginning?

    1. Move forward, move forward, move forward, move forward

    2. Move forward, turn right, turn right, move forward

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

    4. Turn right, turn right, turn right, turn right


    A square has four equal sides, and each corner needs a turn after each side.
  2. רב־ברירהמדעי המחשבsequencesblock codingalgorithm orderstep-by-step instructionsprogramming basics

    What a sequence means

    In block coding, what does the word sequence mean?

    1. The blocks run one after another in a specific order

    2. The blocks are all colored the same

    3. The blocks are shared between different programs

    4. The program runs only once and then stops


    Think about how the blocks are lined up on the screen and when each one runs.
  3. רב־ברירהמדעי המחשבrepeat blockloopscode efficiencyblock codingprogram maintenance

    Repeat block purpose

    Why do programmers use a repeat block instead of placing the same block many times?

    1. It removes the need for any commands

    2. It makes the computer faster at every task

    3. It lets the sprite skip steps automatically

    4. It makes the program shorter and easier to change


    Imagine copying the same block ten times versus writing it once inside a loop.
  4. רב־ברירהמדעי המחשבrepeat blockloopsblock codingcounting iterationsscripts

    Counting repeats

    A script contains a repeat block set to 5 with a block that says Say Hello inside it. How many times is Say Hello shown?

    1. 1

    2. 6

    3. 5

    4. 4


    The repeat number tells you how many times the blocks inside it run.
  5. רב־ברירהמדעי המחשבdebuggingrepeat blockblock codingsprite movementprogram errors

    Finding a bug

    A program is supposed to move a character to the right three times, but it moves only once. What is the most likely reason?

    1. The move block is not inside the repeat block, or the repeat number is wrong

    2. The character has the wrong color

    3. The program has too many sounds

    4. The computer screen is too small


    Look at the blocks that control how many times the move runs.
  6. רב־ברירהמדעי המחשבתוכנהdebuggingprogram errorsprogramming basics

    Meaning of debugging

    What is debugging in programming?

    1. Finding and fixing errors in a program

    2. Deleting all the blocks in a project

    3. Sharing a program with other people

    4. Drawing pictures for a game


    The word starts with 'de-', meaning remove, and 'bug' means a problem.
  7. רב־ברירהמדעי המחשבתוכנהblock ordersequencingprogram fixing

    Wrong order

    A character must wave before it jumps. The blocks are placed as Jump then Wave. What should the programmer do to fix the program?

    1. Delete the Jump block

    2. Swap the blocks so Wave comes before Jump

    3. Add a repeat block around the Wave block

    4. Change the color of the character


    Blocks run from top to bottom, so check which block is on top.
  8. רב־ברירהמדעי המחשבתוכנהforever loopsprite movementblock programming

    Loop forever

    Which block would make a sprite keep moving in a game until the program is stopped?

    1. Repeat 2 times block

    2. Wait 1 second block

    3. Say block

    4. Forever repeat block


    Look for a block that has no fixed number of repeats.
  9. רב־ברירהמדעי המחשבתוכנהprogram testingblock programmingdebugging steps

    Testing a program

    A student wants to check whether a short script works correctly. What is the best first step?

    1. Ask someone else to write a new program

    2. Change every block to a new color

    3. Add many more blocks without testing

    4. Run the script and watch what each block does step by step


    Testing means running the program and comparing what happens to what should happen.
  10. רב־ברירהמדעי המחשבתוכנהrepeat blocksprite movementturn angles

    Repeat with a pattern

    A sprite should draw a triangle using a repeat block. The triangle has 3 sides and each corner turns the sprite by 120 degrees. Which block sequence inside the repeat block is correct?

    1. Move 50 steps, then turn 360 degrees

    2. Move 50 steps, then turn 120 degrees

    3. Move 50 steps, then turn 90 degrees

    4. Turn 50 degrees, then move 120 steps


    Each side is drawn with a move block, and the turn after it matches the corner angle.

פרטים

Questions on writing simple step-by-step instructions, sequences, repeats and debugging in block-based coding. Suitable for young learners in grades 2 to 4.
מקצועות
מדעי המחשב
קהל יעד
בית ספר יסודי · כיתות ב׳–ד׳
רמת קושי
2 מתוך 10
שפה
אנגלית
מי יכול לראות
כולם
הושלם על ידי AI
מה שמסומן בניצוץ נוסף על ידי AI.
נוצר באמצעות AI
Claude Haiku 5.5
נוצר

תגובות

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