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

Introduction to Coding

שאלות 10

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

  1. רב־ברירהמדעי המחשבsequence of instructionsalgorithmscoding basics

    Sequence of steps

    In programming, what does a sequence of instructions mean?

    1. Instructions that run at random

    2. Instructions that run one after another, in order

    3. Instructions that are never run

    4. Instructions that repeat forever


    Think about how you follow a recipe step by step from top to bottom.
  2. רב־ברירהמדעי המחשבloopsrepetitionprogram structurebasic conceptscontrol structures

    Purpose of a loop

    What is the main purpose of a loop in a program?

    1. To delete variables

    2. To stop the program immediately

    3. To repeat a block of instructions

    4. To choose between two paths


    A loop goes around and around, like a racetrack lap.
  3. רב־ברירהמדעי המחשבconditionsprogram logicbasic conceptsboolean logictrue and false

    Condition meaning

    What is a condition in a program?

    1. A test that is either true or false

    2. A name given to a program

    3. A number that is always zero

    4. A picture shown on the screen


    Think about questions like 'Is it raining?' that have a yes or no answer.
  4. רב־ברירהמדעי המחשבif statementconditionsbranchingprogram outputdecision making

    If statement

    A program uses an if statement: if the temperature is above 30, print 'Hot'. What happens when the temperature is 35?

    1. It prints 'Cold'

    2. It prints nothing and stops

    3. It skips the if statement and prints 35

    4. It prints 'Hot'


    The condition 'above 30' is checked. Is 35 above 30?
  5. רב־ברירהמדעי המחשבrepetitionloopsprogram flowcounting loopsiterations

    Counting loop

    How many times will the following loop run? Repeat 4 times: clap hands.

    1. 3

    2. 0

    3. 4

    4. 5


    The word 'Repeat 4 times' tells you exactly how many laps to count.
  6. רב־ברירהמדעי המחשבsequence of instructionsalgorithmsorder of executionrobot instructionsprogram flow

    Order of instructions

    A robot is told: 1. Move forward, 2. Turn right, 3. Move forward. Why does the order matter?

    1. Changing the order can make the robot end in a different place

    2. The order never changes the result

    3. The robot ignores instructions after the first

    4. The robot only reads the last instruction


    Imagine swapping the turn and the first move. Where would you end up?
  7. רב־ברירהמדעי המחשבconditionsbranchingprogram flowdecision makingif-else statement

    Else branch

    What does an else part do in an if-else statement?

    1. It runs when the condition is true

    2. It runs when the condition is false

    3. It repeats the condition again and again

    4. It always runs before the condition is checked


    If the if-part is the 'yes' path, what is the other path called?
  8. רב־ברירהמדעי המחשבloopscountersloop iterationsrepetitionprogram flow

    Loop with a counter

    A program sets a counter to 1 and adds 1 to it each time through a loop, stopping when the counter is 5. How many times does the loop body run?

    1. 1

    2. 5

    3. 6

    4. 4


    The counter takes the values 1, 2, 3, 4 and 5 before the loop stops.
  9. רב־ברירהמדעי המחשבconditionsvariablescomparison operators

    Comparing values

    Which condition is true when the variable age is 10?

    1. age is less than 5

    2. age is not 10

    3. age is greater than 8

    4. age equals 3


    Check each statement by putting 10 in place of age.
  10. רב־ברירהמדעי המחשבsequence of stepsalgorithms basicslogical thinking

    Sequence in everyday life

    Which of these is an example of a sequence of steps?

    1. Brushing your teeth: first put paste on the brush, then brush, then rinse

    2. Choosing to wear a red or a blue shirt

    3. Guessing a number without any clues

    4. Saying hello again and again without stopping


    Look for the option where the steps happen in a fixed order, one after another.

פרטים

Simple questions on sequences, loops and conditions, using block-based coding ideas.
מקצועות
מדעי המחשב
קהל יעד
בית ספר יסודי · כיתות א׳–ג׳
רמת קושי
2 מתוך 10
שפה
אנגלית
מי יכול לראות
כולם
הושלם על ידי AI
מה שמסומן בניצוץ נוסף על ידי AI.
נוצר באמצעות AI
Claude Haiku 5.5
נוצר

תגובות

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