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

Algorithms and Flowcharts

שאלות 10

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

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

    Definition of an Algorithm

    Which of the following best describes an algorithm?

    1. A finite, step-by-step set of instructions that solves a problem

    2. A type of computer virus that spreads through email

    3. A programming language used mainly for building games

    4. A picture of how the parts of a computer are connected


    Think about what a recipe does: it lists clear steps in a set order to reach a result.
  2. רב־ברירהמדעי המחשב

    Flowchart Decision Symbol

    In a standard flowchart, which symbol is used to show a decision where the program checks a condition and follows one of two paths?

    1. Oval

    2. Parallelogram

    3. Rectangle

    4. Diamond


    This symbol has the most 'branching' shape, with a yes path and a no path leaving it.
  3. רב־ברירהמדעי המחשב

    Start and End Symbol

    Which flowchart symbol is normally used to mark the beginning and the end of a flowchart?

    1. Rectangle

    2. Diamond

    3. Oval

    4. Arrow


    Its rounded shape is often described as a stadium or pill shape.
  4. רב־ברירהמדעי המחשב

    The While Loop

    What does a while loop do in a program?

    1. Stops the program immediately when it starts

    2. Chooses one of two paths based on a condition

    3. Repeats its instructions while a condition is true, checking the condition before each repetition

    4. Runs its instructions exactly once and then continues


    The word 'while' tells you how long the repetition continues.
  5. רב־ברירהמדעי המחשב

    Tracing a Simple Loop

    Consider this pseudocode:
    total ← 0
    for i from 1 to 4
    total ← total + i
    end for
    output total
    What value is output?

    1. 4

    2. 10

    3. 6

    4. 12


    Trace the loop by writing down the value of total after each pass: it adds 1, then 2, then 3, then 4.
  6. רב־ברירהמדעי המחשב

    Input and Output Symbol

    Which flowchart symbol represents an input or output step, such as reading a value from the user or displaying a result?

    1. Rectangle

    2. Diamond

    3. Oval

    4. Parallelogram


    This symbol is a slanted shape, and it is not the rectangle used for processing steps.
  7. רב־ברירהמדעי המחשב

    Searching Requirements

    Which search method requires the data to be sorted before it can be used?

    1. Flowchart arrow

    2. Binary search

    3. Linear search

    4. Counter variable


    This method repeatedly cuts the list in half by comparing with the middle item, which only works if the items are in a particular order.
  8. רב־ברירהמדעי המחשב

    Properties of Algorithms

    An algorithm that keeps repeating its steps forever and never finishes does NOT satisfy which property of a good algorithm?

    1. Output

    2. Input

    3. Definiteness

    4. Finiteness


    The name of this property comes from the word 'finite', meaning having an end.
  9. רב־ברירהמדעי המחשב

    Tracing an If-Else Statement

    Consider this pseudocode:
    a ← 4
    b ← 9
    if a > b then
    output a
    else
    output b
    What value is output?

    1. 13

    2. 4

    3. 5

    4. 9


    Check whether the condition a > b is true or false, then follow only the matching branch.
  10. רב־ברירהמדעי המחשב

    Meaning of a Variable

    In programming, what is a variable?

    1. A fixed value that can never change during the program

    2. A list of instructions written in order

    3. A named storage location that holds a value, which can be changed

    4. A symbol in a flowchart that shows a decision


    The word 'variable' suggests something that can vary, and it is given a name so the program can refer to it.

פרטים

Understanding algorithms, reading and drawing flowcharts, and using sequence, conditions and loops.
מקצועות
מדעי המחשב
קהל יעד
חטיבת ביניים · כיתות ח׳–ט׳
רמת קושי
5 מתוך 10
שפה
אנגלית
מי יכול לראות
כולם
נוצר באמצעות AI
Claude Haiku 5.5
נוצר

תגובות

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