Zum Inhalt springen
Prüfung 10 Fragen

Block Coding: Sequences and Loops

Fragen 10

Die Lösungen sehen angemeldete Lehrkräfte.

  1. Multiple ChoiceComputersblock codingrobot commandsorder of steps

    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?

    1. Turn right, move forward, move forward

    2. Turn right, turn right, move forward

    3. Move forward, move forward, turn right

    4. Move forward, turn right, move forward


    Think about the order in which the robot must perform each action, from first to last.
  2. Multiple ChoiceComputersblock codingsequencesprogramming basics

    What a sequence is

    In block coding, what is a sequence?

    1. A message that appears when a program has an error

    2. A picture that the program draws on the screen

    3. A set of blocks that run one after another in a set order

    4. A block that repeats the same action many times


    Consider what the word 'sequence' means in everyday life, such as a sequence of steps.
  3. Multiple ChoiceComputersloopsrepeat blocksblock coding

    Purpose of a loop

    Why do programmers use a loop block in block coding?

    1. To stop the program from ever running

    2. To repeat a set of blocks without copying them many times

    3. To delete blocks from the program

    4. 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.
  4. Multiple ChoiceComputersrepeat blocksloopsefficiencyblock coding

    Repeat block count

    A character must jump 5 times. Which block setup is the most efficient?

    1. A repeat 1 time block containing five jump blocks

    2. Five separate jump blocks in a row

    3. One jump block with no repeat

    4. A repeat 5 times block containing one jump block


    Look for the option that uses the fewest blocks while still jumping exactly five times.
  5. Multiple ChoiceComputerssequencingblock orderblock coding

    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?

    1. The cat waves and says hello at the same time

    2. The cat says hello first, then waves

    3. The cat waves twice

    4. The program will not run at all


    Blocks run in the order they are placed, from top to bottom.
  6. Multiple ChoiceComputersforever looploopsblock coding

    Forever loop

    What does a 'forever' loop block do in a program?

    1. It deletes the sprite after one run

    2. It pauses the program for exactly one second

    3. It repeats its blocks again and again until the program is stopped

    4. It runs its blocks only once and then stops


    The word 'forever' is a clue about how long the blocks keep running.
  7. Multiple ChoiceComputersloopsturning anglesshapesblock coding

    Drawing a square

    Which sequence of blocks, repeated 4 times, draws a square with a pen?

    1. Move 10 steps, turn 45 degrees

    2. Move 10 steps, turn 180 degrees

    3. Move 10 steps, turn 30 degrees

    4. 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.
  8. Multiple ChoiceComputersloopssequencingblock codingcounting actions

    Loop and sequence together

    A program repeats 3 times: move forward, then clap. After the loop ends, the program says goodbye. How many times will the clap action happen?

    1. 0 times

    2. 4 times

    3. 3 times

    4. 1 time


    Count how many times the loop body runs, and remember that the goodbye block is outside the loop.
  9. Multiple ChoiceComputersdebuggingsequencingblock orderblock coding

    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?

    1. Change the sprite's color

    2. Swap the order so grow comes before shrink

    3. Add a forever loop around both blocks

    4. Delete the grow block


    The problem is about the order of the blocks, so think about what must be moved.
  10. Multiple ChoiceComputersloopspatternsrepeat blocksblock coding

    Repeating a pattern

    A pattern of blocks is: clap, stomp, clap, stomp. Which block structure produces this pattern using a loop?

    1. Repeat 2 times: clap, stomp

    2. Repeat 1 time: clap, stomp, clap, stomp

    3. Forever: stomp

    4. Repeat 4 times: clap


    Notice that the same two actions appear twice in the pattern, one after the other.

Info

Simple questions on algorithms, sequences and repeat blocks in block programming.
Fächer
Computers
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

  1. Noch keine Kommentare.
© Alle Rechte vorbehalten