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

Block Coding: Sequences and Loops

שאלות 10

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

  1. רב־ברירהמדעי המחשב

    Order of blocks

    In a block-coding program, in what order does the computer run the blocks?

    1. All blocks at the same time

    2. Randomly, whichever block the computer picks

    3. From bottom to top

    4. From top to bottom, one after another


    Think about how you read a page of text, and how a program is usually written in a stack of blocks.
  2. רב־ברירהמדעי המחשב

    Counting a repeat loop

    A program contains the block 'repeat 4 times' with the block 'move forward 1 step' inside it. How many times does the sprite move forward 1 step?

    1. 5

    2. 1

    3. 4

    4. 0


    The blocks inside a repeat block run once for each time the loop repeats.
  3. רב־ברירהמדעי המחשב

    Purpose of a loop

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

    1. It makes the computer slower on purpose

    2. It stops the program from running

    3. It deletes the blocks after they run

    4. It makes the code shorter and easier to change


    Ask yourself what is easier to read and fix: one repeat block or twenty identical blocks.
  4. רב־ברירהמדעי המחשב

    Effect of block order

    Two programs use exactly the same blocks, but in a different order: Program A has 'turn right 90 degrees' then 'move forward 10 steps', and Program B has 'move forward 10 steps' then 'turn right 90 degrees'. What is true about the sprite?

    1. Both programs always produce exactly the same result

    2. Program B cannot run at all

    3. The order of the blocks can change where the sprite ends up

    4. The order of the blocks never matters in a program


    Try drawing a short path on paper for each program and compare where the sprite finishes.
  5. רב־ברירהמדעי המחשב

    Shape made by a loop

    A program uses 'repeat 4 times' with the blocks 'move forward 10 steps' and 'turn right 90 degrees' inside. What shape does the sprite draw?

    1. A straight line

    2. A square

    3. A triangle

    4. A circle


    Count the sides: each side is one move, and each corner is one turn of 90 degrees.
  6. רב־ברירהמדעי המחשב

    Turn angle for a triangle

    A student wants to draw an equilateral triangle using a loop. Which turn angle should go inside the repeat block, together with the move block?

    1. 120 degrees

    2. 180 degrees

    3. 90 degrees

    4. 60 degrees


    The sprite must turn outside each corner of the triangle. Think about how far the sprite turns to point along the next side.
  7. רב־ברירהמדעי המחשב

    Sequence with a wait

    A program runs these blocks in order: 'say Hello', then 'wait 2 seconds', then 'say Bye'. What does the viewer see first?

    1. Bye

    2. Nothing appears

    3. Hello

    4. Both words appear at the same time


    Blocks run in order, so look at which block is first in the list.
  8. רב־ברירהמדעי המחשב

    Counting with a loop

    A variable called score starts at 0. The program has 'repeat 5 times' with the block 'change score by 1' inside. What is the score at the end?

    1. 4

    2. 5

    3. 10

    4. 6


    Each time the loop runs, the score goes up by 1. Count how many times the loop runs.
  9. רב־ברירהמדעי המחשב

    Name of the block

    What is the name of a programming block that makes other blocks inside it run several times?

    1. A loop

    2. A backdrop

    3. A sprite

    4. A variable


    The word you need describes something that goes around and around.
  10. רב־ברירהמדעי המחשב

    Fixing a wrong turn

    A student wants the sprite to draw a square with a repeat block, but the sprite turns only 45 degrees at each corner. What should the student change to fix the program?

    1. Delete the move block

    2. Change the backdrop colour

    3. Add more sprites to the stage

    4. Change the turn to 90 degrees


    A square has four square corners. Think about how much the sprite must turn at each corner to face the next side.

פרטים

Simple quiz on sequences, commands and repeats in block-based coding. Suitable for early elementary students.
מקצועות
מדעי המחשב
קהל יעד
בית ספר יסודי · כיתות א׳–ב׳
רמת קושי
2 מתוך 10
שפה
אנגלית
מי יכול לראות
כולם
נוצר באמצעות AI
Claude Haiku 5.5
נוצר

תגובות

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