Coding Basics: Sequences and Loops
שאלות 10
מפתח התשובות מוצג למורים מחוברים.
-
What is a sequence
In simple coding, what does it mean when instructions run in a sequence?
The instructions run only when the computer is turned off
The instructions run one after another, in order from top to bottom
The instructions run all at the same time
The instructions run at random, one at a time
Think about how you follow a recipe step by step. -
Meaning of a command
What is a command in a simple computer program?
A mistake that stops the program
A picture that appears on the screen
A single instruction that tells the computer to do one action
A list of all the variables in a program
A command is like telling a robot exactly one thing to do, such as move forward. -
Purpose of a loop
Why do programmers use a loop?
To delete the program from the computer
To change the color of the keyboard
To repeat a set of commands several times without writing them again
To make the computer skip every command
Imagine wanting a robot to clap five times without writing 'clap' five separate lines. -
Order matters
A robot must draw a square. Which set of commands, in order, would correctly draw one?
Turn right, turn right, turn right, turn right, move forward
Move forward, move forward, move forward, move forward, move forward
Turn right, move forward, move forward, turn right
Move forward, turn right, move forward, turn right, move forward, turn right, move forward, turn right
A square has four sides and four corners, so count the sides and the turns. -
-
Changing the order
What happens to the result of a program if you swap the order of two commands, such as 'turn left' and 'move forward'?
The program automatically fixes itself
The computer ignores the second command
The result never changes, because order does not matter in coding
The result can change, because the computer follows the new order
Think about turning first and then walking versus walking first and then turning. -
Loops and repetition
Which of these is the best example of using a loop instead of writing repeated commands?
Repeat 10 times: say hello
Say hello once and then stop forever without ending
Say hello, say hello, say hello, say hello, say hello, say hello, say hello, say hello, say hello, say hello
Say hello and then say goodbye at random
Look for the option that uses a short instruction telling the computer how many times to repeat. -
-
-
פרטים
- מקצועות
- שפות תכנות
- קהל יעד
- בית ספר יסודי · כיתות א׳–ג׳
- רמת קושי
- 2 מתוך 10
- שפה
- אנגלית
- מי יכול לראות
- כולם
- הושלם על ידי AI
- מה שמסומן בניצוץ נוסף על ידי AI.
- נוצר באמצעות AI
- Claude Haiku 5.5
- נוצר
תגובות