Sequences, Loops and Conditions
שאלות 10
מפתח התשובות מוצג למורים מחוברים.
-
Order of Instructions
A block-coding program moves a character forward, then turns it right, then moves it forward again. Why does the order of these blocks matter?
The computer skips every second block in a sequence
Blocks run in the order they are placed, so changing the order changes the path the character takes
Blocks always run at the same time, so the order does not matter
Blocks are sorted alphabetically before the program runs
Think about how you would follow a recipe: do the steps in a different order and what happens to the result? -
Purpose of a Loop
A programmer wants a character to draw a square with four sides. Which block type is most useful to avoid placing the same move-and-turn blocks four times?
A broadcast block
A repeat block (loop)
A variable block
A comment block
Look for the block that runs a group of blocks a set number of times. -
Reading a Condition
In a block program, a robot moves forward as long as the path ahead is clear. Which block type checks whether something is true before deciding what to do?
A wait block
A sound block
A conditional (if) block
A move block
This block asks a yes-or-no question and chooses an action based on the answer. -
Repeat Until
A character should keep walking forward until it touches the edge of the screen. Which kind of loop fits this task best?
A repeat until loop that stops when the edge is touched
A single move block with no loop
A loop that never ends under any condition
A loop that repeats exactly 100 times no matter what
Choose the loop that continues based on a condition instead of a fixed count. -
-
Combining Ideas
A program repeats 5 times: move forward 1 step, and if the sprite touches the wall, it says Ouch. What combination of block ideas does this program use?
Only a sound effect with no movement
Only a sequence with no repetition
A loop combined with a condition
Only a variable with no decisions
Count how many block types repeat and how many check something. -
Debugging a Loop
A student wants a sprite to jump three times, but the sprite jumps only once because the jump block is placed outside the repeat block. What is the best fix?
Delete the repeat block and keep the jump block
Change the sprite's color
Move the jump block inside the repeat block
Add a second jump block outside the loop
A block inside a loop runs again each time the loop repeats; a block outside it runs only once. -
Order of blocks
In block coding, a program runs its blocks from top to bottom, one after another, so the order in which blocks are placed changes what the program does.
True
False
Think about what happens when you put the same blocks in a different order, like getting dressed: socks before or after shoes. -
-
פרטים
- מקצועות
- שפות תכנות
- תגיות
- נוסף על ידי AI block coding נוסף על ידי AI loops נוסף על ידי AI conditionals נוסף על ידי AI sequencing
- קהל יעד
- בית ספר יסודי · כיתות ב׳–ד׳
- רמת קושי
- 3 מתוך 10
- שפה
- אנגלית
- מי יכול לראות
- כולם
- הושלם על ידי AI
- מה שמסומן בניצוץ נוסף על ידי AI.
- נוצר באמצעות AI
- Claude Haiku 5.5
- נוצר
תגובות