Block Coding: Sequences and Loops
שאלות 10
מפתח התשובות מוצג למורים מחוברים.
-
Order of instructions
A robot must draw a square. Which order of block commands will correctly make it draw one square with sides of equal length?
Turn right, move forward, turn right, move forward
Turn right, turn right, move forward, move forward, move forward, move forward, turn right, turn right
Move forward, move forward, 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 equal sides and four corners. Think about what the robot does at each side. -
Meaning of a sequence
In block coding, what does it mean when blocks are placed in a sequence?
The blocks are run all at the same time
The blocks are run one after another, from top to bottom
The blocks are run only from bottom to top
The blocks are run in a random order
Think about how you read a page of text in English. -
-
Purpose of a loop
Why do programmers use a loop block instead of copying the same block many times?
To make the computer slower on purpose
To stop the program from running
To remove all the other blocks from the program
To make the program shorter and easier to change
Imagine you need to change how many steps a character takes in ten copied blocks versus one loop. -
-
-
-
Debugging a sequence
A character should walk three steps forward, but it walks only once and stops. The loop block says 'repeat 1'. What should be changed?
Add a turn block at the end
Change the color of the character
Change the repeat number to 3
Delete the loop block completely
Compare the number of steps you want with the number on the repeat block. -
Forever loop
What does a 'forever' loop block do when it contains a move block?
It moves once and then the program ends
It moves only when the computer is turned off
It moves exactly 100 times and then deletes itself
It repeats the move block again and again until the program is stopped
The word 'forever' describes how long the repeating goes on. -
Designing a sequence
You want a cat to walk to a ball, then wave. Which plan is in the correct order?
Move to the ball and wave in a loop forever before anything else
Wave, then move to the ball
Wave ten times, then remove the ball
Move to the ball, then wave
Think about what the cat must do first to reach the ball, and what happens after.
פרטים
- מקצועות
- מדעי המחשב
- תגיות
- נוסף על ידי AI sequences נוסף על ידי AI loops נוסף על ידי AI robot commands נוסף על ידי AI repeat blocks נוסף על ידי AI visual programming
- קהל יעד
- בית ספר יסודי · כיתות א׳–ג׳
- רמת קושי
- 2 מתוך 10
- שפה
- אנגלית
- מי יכול לראות
- כולם
- הושלם על ידי AI
- מה שמסומן בניצוץ נוסף על ידי AI.
- נוצר באמצעות AI
- Claude Haiku 5.5
- נוצר
תגובות