Block Coding: Sequences and Loops
Fragen 10
Die Lösungen sehen angemeldete Lehrkräfte.
-
Order of blocks
A programmer wants a robot to move forward, then turn right, then move forward again. Which order of blocks does this need?
Turn right, move forward, move forward
Turn right, turn right, move forward
Move forward, move forward, turn right
Move forward, turn right, move forward
Think about the order in which the robot must perform each action, from first to last. -
What a sequence is
In block coding, what is a sequence?
A message that appears when a program has an error
A picture that the program draws on the screen
A set of blocks that run one after another in a set order
A block that repeats the same action many times
Consider what the word 'sequence' means in everyday life, such as a sequence of steps. -
Purpose of a loop
Why do programmers use a loop block in block coding?
To stop the program from ever running
To repeat a set of blocks without copying them many times
To delete blocks from the program
To change the color of the background only once
Think about what you would need if a robot had to walk the same step ten times. -
Repeat block count
A character must jump 5 times. Which block setup is the most efficient?
A repeat 1 time block containing five jump blocks
Five separate jump blocks in a row
One jump block with no repeat
A repeat 5 times block containing one jump block
Look for the option that uses the fewest blocks while still jumping exactly five times. -
Sequence matters
A program should make a cat wave, then say hello. What happens if the blocks are put in the reverse order: say hello first, then wave?
The cat waves and says hello at the same time
The cat says hello first, then waves
The cat waves twice
The program will not run at all
Blocks run in the order they are placed, from top to bottom. -
Forever loop
What does a 'forever' loop block do in a program?
It deletes the sprite after one run
It pauses the program for exactly one second
It repeats its blocks again and again until the program is stopped
It runs its blocks only once and then stops
The word 'forever' is a clue about how long the blocks keep running. -
Drawing a square
Which sequence of blocks, repeated 4 times, draws a square with a pen?
Move 10 steps, turn 45 degrees
Move 10 steps, turn 180 degrees
Move 10 steps, turn 30 degrees
Move 10 steps, turn 90 degrees
A square has four equal sides and four right angles, and the turns must add up to a full circle of 360 degrees. -
-
Debugging a sequence
A student wants a sprite to grow, then shrink. The blocks are placed as shrink first and grow second. What is the best fix?
Change the sprite's color
Swap the order so grow comes before shrink
Add a forever loop around both blocks
Delete the grow block
The problem is about the order of the blocks, so think about what must be moved. -
Repeating a pattern
A pattern of blocks is: clap, stomp, clap, stomp. Which block structure produces this pattern using a loop?
Repeat 2 times: clap, stomp
Repeat 1 time: clap, stomp, clap, stomp
Forever: stomp
Repeat 4 times: clap
Notice that the same two actions appear twice in the pattern, one after the other.
Info
- Fächer
- Computers
- Schlagwörter
- Von KI hinzugefügt block coding Von KI hinzugefügt loops Von KI hinzugefügt repeat blocks Von KI hinzugefügt algorithms
- Zielgruppe
- Grundschule · Klassenstufen 1–3
- Schwierigkeit
- 2 von 10
- Sprache
- Englisch
- Wer es sehen kann
- Alle
- Von KI ergänzt
- Was mit einem Funkelsymbol markiert ist, wurde von KI hinzugefügt.
- Von KI geschrieben
- Claude Haiku 5.5
- Erstellt
Kommentare