Coding Basics with Blocks
שאלות 10
מפתח התשובות מוצג למורים מחוברים.
-
-
Command block purpose
Which of the following best describes what a command block does in a block coding program?
It writes a note that is ignored by the program
It stores a number for later use
It tells the character or computer to perform one specific action
It repeats the whole program forever
A command is an instruction that makes something happen, such as moving or jumping. -
Order matters
A programmer puts the blocks 'move forward' and 'turn right' in a sequence. Why does the order of these blocks matter?
Because the computer only runs the last block
Because the order does not matter at all in any program
Because the blocks change their colour when moved
Because the computer runs the blocks in the order they are placed, so the result can change
Imagine walking forward then turning versus turning then walking forward. -
Repeat loop meaning
What is the main purpose of a repeat block (a simple loop) in block coding?
To run the same blocks inside it several times without copying them
To delete all other blocks in the program
To pause the program until the user clicks
To change the name of a sprite
Think about how you would avoid writing the same move block ten times in a row. -
-
Sequence of a square
To draw a square with a turtle, a student uses four times the sequence 'move 50 steps' then 'turn right 90 degrees'. Why is the turn needed between the moves?
It makes the turtle smaller after each side
It saves the drawing to a file
It is not needed and can be removed without any change
It changes the direction so that each side of the shape is drawn at a right angle
A square has corners that are right angles, so think about what the turn does to the direction of movement. -
Loop replacing repeated blocks
Which set of blocks is a shorter way to draw a square using a loop instead of writing four move and turn pairs?
Repeat 4 times: turn right 90 degrees only
Repeat 90 times: move 50 steps, turn right 4 degrees
Repeat 50 times: move 4 steps, turn right 90 degrees
Repeat 4 times: move 50 steps, turn right 90 degrees
A square has four sides, and each side needs one move and one turn. -
Debugging a sequence
A student wants a sprite to say 'Hello' and then walk 5 steps, but the sprite walks first and then says 'Hello'. What is the best way to fix the program?
Change the sprite's colour to fix the order
Swap the order of the two blocks so the say block comes first
Delete the walk block and keep only the say block
Add a repeat block around the whole program
The computer runs blocks from top to bottom, so check which block sits higher in the sequence. -
Forever loop
What does a 'forever' loop block do when it is placed around a set of movement blocks?
It keeps repeating the blocks inside it until the program is stopped
It deletes the blocks after they run
It runs the blocks exactly 100 times
It runs the blocks only once and then ends
The word forever in the name tells you how long the loop continues. -
Pattern with loops
A student wants a sprite to blink on and off five times. Which approach uses a simple loop correctly?
Place the show block and hide block inside a repeat 5 block
Place a repeat 1 block around the show block only
Write show and hide once and add a comment saying five times
Use a colour block five times without any loop
The blinking action is a pair of commands, and you want that pair to run a set number of times.
פרטים
- מקצועות
- מדעי המחשב
- תגיות
- נוסף על ידי AI block coding נוסף על ידי AI sequences נוסף על ידי AI loops נוסף על ידי AI repeat blocks נוסף על ידי AI sprites
- קהל יעד
- בית ספר יסודי · כיתות א׳–ב׳
- רמת קושי
- 2 מתוך 10
- שפה
- אנגלית
- מי יכול לראות
- כולם
- הושלם על ידי AI
- מה שמסומן בניצוץ נוסף על ידי AI.
- נוצר באמצעות AI
- Claude Haiku 5.5
- נוצר
תגובות