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

Introduction to Coding: Sequences and Loops

الأسئلة 10

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

  1. اختيار من متعددComputersturtle graphicsrobot commandsturning direction

    Order of commands

    A robot must draw a square. Which order of commands makes the robot finish back at its starting point after drawing one square?

    1. Turn right, turn right, move forward, move forward

    2. Move forward, turn right, move forward, turn right, move forward, turn right, move forward, turn right

    3. Move forward, turn left, turn left, move forward

    4. Move forward, move forward, move forward, move forward


    A square has four equal sides and four corners. Think about what happens after each side is drawn.
  2. اختيار من متعددComputerssequencesinstructionsdefinitions

    Meaning of a sequence

    What is a sequence in a computer program?

    1. A list of names stored in a folder

    2. A set of instructions that run one after another in a specific order

    3. A random group of instructions that run at the same time

    4. A single instruction that repeats forever


    Think about getting dressed: the order of your steps matters.
  3. اختيار من متعددComputersloopsrepetitioncode efficiency

    What a loop does

    What is the main purpose of a loop in simple coding?

    1. To make the computer turn off automatically

    2. To store a picture in memory

    3. To repeat a block of commands several times without writing them again

    4. To delete all commands from a program


    Imagine you want to clap your hands five times. Do you need to write five separate clap commands?
  4. اختيار من متعددComputersloopsrepeat blockcounting repetitions

    Repeat block result

    A program says: Repeat 3 times: [Say Hello]. How many times is the word Hello said?

    1. 6 times

    2. 1 time

    3. 3 times

    4. 0 times


    The repeat block tells the computer how many times to run the commands inside it.
  5. اختيار من متعددComputerssequence ordercause and effectalgorithm stepsprogram commands

    Changing the order

    Two commands are: Wash hands, then Eat lunch. If the order is swapped to Eat lunch, then Wash hands, what is most likely to happen?

    1. The program becomes a loop automatically

    2. The result changes because the sequence of commands is different

    3. The computer will refuse to run the program

    4. The result stays exactly the same because order never matters


    In a sequence, the computer follows the commands in exactly the order they are written.
  6. اختيار من متعددComputersloopsrepetition

    Counting loop iterations

    A loop is written as: Repeat 4 times: [Move forward 2 steps]. How many steps forward does the character move in total?

    1. 6 steps

    2. 8 steps

    3. 4 steps

    4. 2 steps


    Multiply the number of repeats by the steps done in each repeat.
  7. اختيار من متعددComputersloopsprogram structure

    Identifying a loop

    Which of the following is an example of a loop in a simple program?

    1. Repeat 10 times: [Jump]

    2. Show a picture of a cat

    3. Wait for 5 seconds

    4. Jump, then sit, then wave


    Look for a command that tells the computer to do something over and over again.
  8. اختيار من متعددComputersdebuggingsequencesprogram order

    Debugging a sequence

    A robot is supposed to walk to the door and then open it, but the program says: Open the door, then Walk to the door. What is the best fix?

    1. Change the robot's color

    2. Add more Open the door commands at the end

    3. Delete the Open the door command

    4. Swap the two commands so walking comes before opening


    Think about what the robot needs to do first before it can open the door.
  9. اختيار من متعددComputersloopsturtle graphicssequences

    Simple loop with turns

    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 straight line

    4. A square


    Four equal sides with right-angle turns close a shape with four corners.
  10. اختيار من متعددComputerscoding basicscommandsinstructions

    Commands as instructions

    In coding, what is a command?

    1. A name given to a computer

    2. An instruction that tells the computer to perform a specific action

    3. A picture that appears on the screen

    4. A mistake that stops a program


    Think of a command as an order you give to the computer, like telling it to move or to say something.

نبذة

Simple programming ideas in English: step-by-step instructions, sequences and repeating loops, with block-based examples.
المواد
Computers
الفئة المستهدفة
المدرسة الابتدائية · الصفوف 2–4
الصعوبة
2 من 10
اللغة
الإنجليزية
من يمكنه رؤيته
الجميع
أكمله الذكاء الاصطناعي
ما يحمل علامة البريق أضافه الذكاء الاصطناعي.
كتبه الذكاء الاصطناعي
Claude Haiku 5.5
تاريخ الإنشاء

التعليقات

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