Skip to content
Exam 10 questions

Introduction to Coding with Blocks

Questions 10

The answer key is shown to signed-in teachers.

  1. Multiple choiceProgramming languages

    Order of Commands

    A robot must draw a square. Which set of commands, run in order from top to bottom, will make the robot draw a square with four equal sides?

    1. Move forward, turn right 45 degrees, move forward, turn right 45 degrees

    2. Move forward, move forward, move forward, move forward

    3. Move forward, turn right 90 degrees, move forward, turn right 90 degrees, move forward, turn right 90 degrees, move forward, turn right 90 degrees

    4. Turn right 90 degrees, turn right 90 degrees, turn right 90 degrees, turn right 90 degrees


    A square has four equal sides and four square corners. Each corner is a 90 degree turn.
  2. Multiple choiceProgramming languages

    What a Sequence Means

    In programming, what does it mean when we say that instructions run in a sequence?

    1. Each instruction is carried out one after another, in the order they are written

    2. All instructions are carried out at the same time

    3. The computer chooses instructions at random to carry out

    4. Instructions are skipped unless the user presses a button


    Think about reading a recipe: you follow the steps from the first line to the last.
  3. Multiple choiceProgramming languages

    Purpose of a Loop

    A programmer wants a character to clap 10 times. Which programming idea lets them write the clap command only once but still clap 10 times?

    1. A condition that never changes

    2. A variable

    3. A loop

    4. A comment


    This idea repeats a block of commands again and again until a stopping point is reached.
  4. Multiple choiceProgramming languages

    Repeat Blocks

    A program has the block: repeat 5 times [say Hello]. How many times will the word Hello be said?

    1. 6

    2. 5

    3. 4

    4. 3


    The number next to repeat tells you how many times the commands inside the block run.
  5. Multiple choiceProgramming languages

    Simple Commands

    Which of the following is an example of a simple command that a programmer might give to a computer character?

    1. Jump

    2. Because

    3. Blue

    4. Seven


    A command tells the character to do an action, such as a verb showing movement.
  6. Multiple choiceProgramming languages

    Order Matters

    A character must wave and then say Hi. Why does the order of these two commands matter in a sequence?

    1. Because the order has no effect on what happens

    2. Because the computer always runs the last command first

    3. Because the commands are only used when the program stops

    4. Because the computer runs the commands in the order they are listed, so the result changes if the order changes


    Imagine putting on your shoes before your socks versus socks before shoes.
  7. Multiple choiceProgramming languages

    Loop Counting

    A program repeats the block [move forward 2 steps] for 4 repeats. How many steps does the character move forward in total?

    1. 8

    2. 6

    3. 12

    4. 4


    Multiply the number of steps in one repeat by the number of repeats.
  8. True / falseProgramming languages

    Loops repeat actions

    A loop lets a programmer repeat a block of commands several times without writing every command again. True or false?

    1. True

    2. False


    Think about why programmers use the word repeat in a program, such as making a character do the same action many times.
  9. True / falseProgramming languages

    Commands in a sequence

    When a computer runs a program made of a sequence of commands, it can run the commands in any random order and the result will always be the same. True or false?

    1. True

    2. False


    Consider what happens to a drawing or a dance if you change the order of the steps.
  10. True / falseProgramming languages

    Simple commands

    A simple command such as move forward or turn left is an instruction that tells a computer character exactly what action to do. True or false?

    1. True

    2. False


    Think about what a single instruction given to a robot or a game character usually does.

About

Basic ideas of computer programming for young children: sequences, repeats and simple instructions. Questions are based on block-based coding activities.
Audience
Elementary School · Grades 2–4
Difficulty
3 out of 10
Language
English
Who can see it
Everyone
Written by AI
Claude Haiku 5.5
Created

Comments

  1. No comments yet.
© All Rights Reserved