التخطي إلى المحتوى
اختبار 10 أسئلة

Coding Basics: Sequences and Loops

الأسئلة 10

يظهر مفتاح الإجابات للمعلمين المسجَّلين الدخول.

  1. اختيار من متعددComputersstep-by-stepproblem solvingcomputer basicsinstructionsalgorithm definition

    What is an algorithm?

    Which of these best describes an algorithm?

    1. A type of computer screen used for games

    2. A key on the keyboard that deletes text

    3. A computer program that only draws pictures

    4. A set of clear step-by-step instructions for solving a problem


    Think about a recipe: what does it give you, step by step?
  2. اختيار من متعددComputerssequencingordering stepsDaily routinesalgorithmslogical order

    Steps in order

    Which list shows the steps for brushing your teeth in the correct order?

    1. Brush your teeth, rinse your mouth, put toothpaste on the brush

    2. Brush your teeth, put toothpaste on the brush, rinse your mouth

    3. Put toothpaste on the brush, brush your teeth, rinse your mouth

    4. Rinse your mouth, put toothpaste on the brush, brush your teeth


    You need toothpaste before you can brush, and you rinse last.
  3. اختيار من متعددComputerssequenceprogram flowinstructionsalgorithm orderstep-by-step

    Meaning of a sequence

    In an algorithm, what does it mean when the instructions form a sequence?

    1. The steps are carried out at the same time

    2. The steps are chosen at random

    3. The steps are skipped if they are too hard

    4. The steps are carried out one after another in a set order


    The word sequence is used in math for numbers that follow an order, like 1, 2, 3.
  4. اختيار من متعددComputersrepeat loopscounting stepsrobot commandssequencesbasic arithmetic

    Counting steps in a repeat

    A robot runs this program: Repeat 4 times: move forward 2 steps. How many steps does the robot take in total?

    1. 12

    2. 6

    3. 8

    4. 4


    Count how many times the move happens, then multiply by the 2 steps each time.
  5. اختيار من متعددComputersloopsprogramming basicscode efficiencyrepeat instructionsalgorithmic thinking

    Purpose of a loop

    Why is a repeat loop useful in programming?

    1. It deletes old files from the computer

    2. It lets us repeat the same instructions without writing them many times

    3. It changes the colour of the screen automatically

    4. It turns the computer off after one instruction


    Imagine writing the same line 100 times versus writing it once inside a repeat.
  6. اختيار من متعددComputersturtle graphicsloopsgeometric shapes

    Drawing with a loop

    A turtle program says: Repeat 4 times: move forward 10 steps, turn right 90 degrees. What shape does the turtle draw?

    1. A triangle

    2. A circle

    3. A square

    4. A hexagon


    Count the sides the turtle draws and the size of each turn.
  7. اختيار من متعددComputerssequential executioncountingprogram output

    Counting sequence

    A program says: Count from 1 to 5, and print each number. Which sequence is printed?

    1. 1 3 5 7 9

    2. 5 4 3 2 1

    3. 2 4 6 8 10

    4. 1 2 3 4 5


    Start at 1 and go up by one each time until you reach 5.
  8. اختيار من متعددComputersalgorithm propertiesstep-by-step instructionsalgorithm design

    Properties of a good algorithm

    Which statement is NOT true of a good algorithm?

    1. It can be read in more than one way

    2. It gives the same result when run again with the same input

    3. Each step is clear and exact

    4. It has a finite number of steps


    A good set of instructions should leave no room for guessing.
  9. اختيار من متعددComputersloopsrepeat commandcounting

    Counting repeats

    A program says: Repeat 3 times: jump, clap. How many times is the clap action performed?

    1. 5

    2. 2

    3. 3

    4. 6


    Only the instructions inside the repeat are counted each time the loop runs.
  10. اختيار من متعددComputersnumber sequencesarithmetic patternsrepeating pattern

    Finding the next term

    The sequence 2, 4, 6, 8 follows a repeating pattern of adding the same amount each time. What is the next number in the sequence?

    1. 12

    2. 10

    3. 16

    4. 9


    Look at how much the numbers grow from one term to the next.

نبذة

Simple questions about step-by-step instructions, sequences, repeats and loops, written for young children learning to code.
المواد
Computers
الفئة المستهدفة
المدرسة الابتدائية · الصفوف 2–4
الصعوبة
3 من 10
اللغة
الإنجليزية
من يمكنه رؤيته
الجميع
أكمله الذكاء الاصطناعي
ما يحمل علامة البريق أضافه الذكاء الاصطناعي.
كتبه الذكاء الاصطناعي
Claude Haiku 5.5
تاريخ الإنشاء

التعليقات

  1. لا توجد تعليقات بعد.
© جميع الحقوق محفوظة