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

Sequences and Loops for Beginners

שאלות 10

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

  1. רב־ברירהמדעי המחשבrobot instructionsalgorithmscommand orderprogramming basicssequence of steps

    Following a sequence

    A robot is given these steps in order: move forward, turn right, move forward. Where does the robot end up relative to the order of steps it follows?

    1. It runs the steps in random order

    2. It follows the steps one after another, in the order given

    3. It does the last step first

    4. It skips every step


    Think about what the word sequence means: the steps happen in a fixed order, one at a time.
  2. רב־ברירהמדעי המחשבrepeat loopturtle drawingloopsprogramming basicsalgorithms

    Purpose of a repeat loop

    Why would a programmer use a repeat loop when drawing a square with a turtle?

    1. To change the color of the pen randomly

    2. To avoid writing the same move and turn four times

    3. To stop the program from running

    4. To make the turtle draw a circle instead


    A square has four sides that are all drawn the same way. How could one instruction do the work of four?
  3. רב־ברירהמדעי המחשבrepeat loopcounting repetitions

    Number of repeats

    The instruction repeat 5 times: clap is given. How many times does the clap action happen?

    1. 6

    2. 5

    3. 4

    4. 3


    The number after the word repeat tells you how many times the instructions inside the loop run.
  4. רב־ברירהמדעי המחשבorder of instructionsrobot commandssequencing

    Order of steps

    Which order of instructions will make a robot first pick up a cup and then place it on a table?

    1. Place the table on the cup, then pick it up

    2. Place it on the table, then pick up the cup

    3. Pick up the cup, then place it on the table

    4. Pick up the cup and place it on the table at the same time


    Imagine doing this yourself: what must you do first before you can put something somewhere?
  5. רב־ברירהמדעי המחשבalgorithm definitionproblem solvingstep-by-step instructions

    Algorithm definition

    What is an algorithm?

    1. A clear, step-by-step set of instructions for solving a problem or completing a task

    2. A random guess at an answer

    3. A type of computer screen

    4. A word used only for computer games


    Recipes and game rules are examples of this idea. What do they have in common?
  6. רב־ברירהמדעי המחשבrepeat looploop countermovement commands

    Loop with a counter

    A program repeats the instruction move forward 1 step, 10 times. After the loop ends, how far has the character moved, if each step is 1 unit long?

    1. 5 units

    2. 10 units

    3. 100 units

    4. 11 units


    Each repeat adds one step of 1 unit. Count how many repeats there are.
  7. רב־ברירהמדעי המחשבorder of stepssequencing errorseveryday sequences

    Sequence and mistakes

    A student writes the steps to make a cup of tea as: pour water into the cup, put the tea bag in the cup, boil the water. What is wrong with this sequence?

    1. The tea bag should be removed before the cup is used

    2. Nothing is wrong, the order is perfect

    3. The water should be boiled before it is poured, so the order is wrong

    4. Water should never be poured into a cup


    Think about which step must come first so that the next step can work properly.
  8. רב־ברירהמדעי המחשבconditional loopsrobot commandsstop condition

    Repeat until a goal

    A robot repeats the instruction move forward until it touches the wall. What does this kind of loop depend on?

    1. Nothing, it always repeats forever

    2. A condition that tells the loop when to stop

    3. A random number that is never checked

    4. The color of the robot


    The loop needs to know when its job is finished. What tells it that?
  9. רב־ברירהמדעי המחשבturtle graphicssequencesrepeat loopgeometric shapes

    Nested idea in a sequence

    Which sequence correctly draws a shape with three equal sides using a turtle: move forward, turn 120 degrees, repeated 3 times?

    1. A circle

    2. A square

    3. A triangle

    4. A straight line


    A shape with three sides and three corners is named after the number three.
  10. רב־ברירהמדעי המחשבalgorithmsclear instructionsfollowing stepsreproducible results

    Writing instructions for others

    Why is it important that each instruction in an algorithm is clear and exact?

    1. So that the algorithm becomes longer

    2. So that every step can be done in any order

    3. So that the instructions can be ignored

    4. So that the person or computer can follow it correctly and get the same result


    Imagine giving directions to a friend. What happens if the directions are vague?

פרטים

Simple quiz on giving step-by-step instructions, sequences of commands and repeating actions with loops, using block-based coding.
מקצועות
מדעי המחשב
קהל יעד
בית ספר יסודי · כיתות א׳–ג׳
רמת קושי
2 מתוך 10
שפה
אנגלית
מי יכול לראות
כולם
הושלם על ידי AI
מה שמסומן בניצוץ נוסף על ידי AI.
נוצר באמצעות AI
Claude Haiku 5.5
נוצר

תגובות

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