Skip to content
Exam 10 questions

Coding: Directions and Commands

Questions 10

The answer key is shown to signed-in teachers.

  1. Multiple choiceComputersprogram executionsequential ordercomputer commands

    Order of Commands

    When a computer runs a program, in what order does it carry out the commands written in the program?

    1. Only the longest command is carried out

    2. From the last line back to the first line

    3. From the first line to the last line, one after another

    4. 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?
  2. Multiple choiceComputersturtle graphicsdirection commandssequential commandsturn left

    Turn Left Command

    A turtle on the screen is given the command turn left. Which way does the turtle turn?

    1. Forward

    2. Backwards

    3. To the left

    4. To the right


    The name of the command tells you the direction. Look at the word after 'turn'.
  3. Multiple choiceComputersProgramming languagesloopsprogram controlrepeat command

    Repeating Actions

    Which command lets a program do the same set of actions several times without writing them again?

    1. pause

    2. hide

    3. draw

    4. repeat


    You want a command that says 'do this again and again', a bit like saying 'do it four times'.
  4. Multiple choiceComputersProgramming languagessequencingstep orderrobot commands

    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. 1. Open the door 2. Walk to the door

    2. 1. Walk to the door 2. Open the door

    3. 1. Turn off the robot 2. Open the door

    4. 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.
  5. Multiple choiceComputerssoftwareAlgorithminstructionscomputational thinking

    Name for a List of Instructions

    A clear, ordered list of steps that tells a computer how to solve a task is called an:

    1. algorithm

    2. battery

    3. picture

    4. keyboard


    This word is used in computer science for step-by-step instructions. It sounds a bit like 'logarithm' but starts differently.
  6. Multiple choiceComputersProgramming languagesprogram controlstop commandsprite motion

    Stop Command

    Which command would make a sprite that is moving on the screen stop moving?

    1. jump

    2. start

    3. stop

    4. spin


    Choose the command whose meaning is the opposite of making the sprite move.
  7. Multiple choiceComputersProgramming languagesturtle graphicsmove commandsteps

    Meaning of a Move Command

    In a turtle program, the command forward 50 tells the turtle to do what?

    1. Turn 50 degrees

    2. Move 50 steps forward

    3. Change its colour to number 50

    4. Wait for 50 seconds


    The word 'forward' is about movement, and the number tells you how much to move.
  8. Multiple choiceComputersProgramming languagescommand syntaxexact spellingprogram rules

    Exact Spelling of Commands

    Why must commands in a program be written exactly as the computer expects them?

    1. Computers ignore spelling mistakes in commands

    2. Computers prefer commands with more letters

    3. Computers only understand instructions written exactly as they are defined

    4. 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?
  9. Multiple choiceComputersProgramming languagesturtle graphicsturning directionright turn

    Turning Right

    A turtle is facing up on the screen. It is given the command turn right 90 degrees. Which way is it facing now?

    1. Left

    2. Right

    3. Up

    4. Down


    Imagine standing up facing the top of the page and turning a quarter circle to your right. Where are you facing?
  10. Multiple choiceComputersProgramming languagesturtle graphicsrepeat loopdrawing shapesforward movement

    Drawing a Shape with Commands

    A program repeats 4 times the commands: move forward 100 steps, then turn right 90 degrees. What shape is drawn?

    1. A square

    2. A straight line

    3. A triangle

    4. A circle


    Count the sides: each side is drawn by one move, and each corner is made by one turn of 90 degrees.

About

Simple coding quiz on giving step-by-step directions and commands, such as move forward and turn left.
Subjects
Computers
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

  1. No comments yet.
© All Rights Reserved