Block Coding: Sequences and Loops
שאלות 10
מפתח התשובות מוצג למורים מחוברים.
-
Order of blocks
In a block-coding program, in what order does the computer run the blocks?
All blocks at the same time
Randomly, whichever block the computer picks
From bottom to top
From top to bottom, one after another
Think about how you read a page of text, and how a program is usually written in a stack of blocks. -
-
Purpose of a loop
Why would a programmer use a 'repeat' block instead of copying the same block many times?
It makes the computer slower on purpose
It stops the program from running
It deletes the blocks after they run
It makes the code shorter and easier to change
Ask yourself what is easier to read and fix: one repeat block or twenty identical blocks. -
Effect of block order
Two programs use exactly the same blocks, but in a different order: Program A has 'turn right 90 degrees' then 'move forward 10 steps', and Program B has 'move forward 10 steps' then 'turn right 90 degrees'. What is true about the sprite?
Both programs always produce exactly the same result
Program B cannot run at all
The order of the blocks can change where the sprite ends up
The order of the blocks never matters in a program
Try drawing a short path on paper for each program and compare where the sprite finishes. -
-
Turn angle for a triangle
A student wants to draw an equilateral triangle using a loop. Which turn angle should go inside the repeat block, together with the move block?
120 degrees
180 degrees
90 degrees
60 degrees
The sprite must turn outside each corner of the triangle. Think about how far the sprite turns to point along the next side. -
-
-
-
Fixing a wrong turn
A student wants the sprite to draw a square with a repeat block, but the sprite turns only 45 degrees at each corner. What should the student change to fix the program?
Delete the move block
Change the backdrop colour
Add more sprites to the stage
Change the turn to 90 degrees
A square has four square corners. Think about how much the sprite must turn at each corner to face the next side.
פרטים
- מקצועות
- מדעי המחשב
- קהל יעד
- בית ספר יסודי · כיתות א׳–ב׳
- רמת קושי
- 2 מתוך 10
- שפה
- אנגלית
- מי יכול לראות
- כולם
- נוצר באמצעות AI
- Claude Haiku 5.5
- נוצר
תגובות