Introduction to Coding with Blocks
Questions 10
The answer key is shown to signed-in teachers.
-
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?
Move forward, turn right 45 degrees, move forward, turn right 45 degrees
Move forward, move forward, move forward, move forward
Move forward, turn right 90 degrees, move forward, turn right 90 degrees, move forward, turn right 90 degrees, move forward, turn right 90 degrees
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. -
What a Sequence Means
In programming, what does it mean when we say that instructions run in a sequence?
Each instruction is carried out one after another, in the order they are written
All instructions are carried out at the same time
The computer chooses instructions at random to carry out
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. -
-
-
-
Order Matters
A character must wave and then say Hi. Why does the order of these two commands matter in a sequence?
Because the order has no effect on what happens
Because the computer always runs the last command first
Because the commands are only used when the program stops
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. -
-
-
-
About
- Subjects
- Programming languages
- 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