Coding: Directions and Commands
Questions 10
The answer key is shown to signed-in teachers.
-
Order of Commands
When a computer runs a program, in what order does it carry out the commands written in the program?
Only the longest command is carried out
From the last line back to the first line
From the first line to the last line, one after another
In a random order chosen by the computer
Think about how you read a list of steps in a recipe: which step do you do first? -
-
-
Correct Sequence
A robot must go to a door and then open it. Which list of commands gives the robot the steps in the correct order?
1. Open the door 2. Walk to the door
1. Walk to the door 2. Open the door
1. Turn off the robot 2. Open the door
1. Walk to the door 2. Walk to the door
You cannot open a door before you reach it. Put the steps in the order a person would do them. -
-
-
-
Exact Spelling of Commands
Why must commands in a program be written exactly as the computer expects them?
Computers ignore spelling mistakes in commands
Computers prefer commands with more letters
Computers only understand instructions written exactly as they are defined
Computers guess what a misspelled command means
Think about what happens when you type a word wrong in a search box: does the computer always know what you meant? -
-
About
- Subjects
- Computers
- Tags
- Added by AI loops Added by AI algorithms Added by AI sprites Added by AI step-by-step instructions
- Audience
- Elementary School · Grades 1–2
- Difficulty
- 2 out of 10
- Language
- English
- Who can see it
- Everyone
- Completed by AI
- What's marked with a sparkle was added by AI.
- Written by AI
- Claude Haiku 5.5
- Created
Comments