Characteristic of a robot: programmable

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Characteristic of a robot: programmable

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which statement describes a programmable robot?
A It only moves when a person steers it all the time
B It follows a stored set of instructions
2. A factory robot arm welds car doors. The company wants it to weld boot lids instead. What is the best change?
A Reprogram it with new instructions
B Replace the whole robot with a new one
3. Where are a robot's instructions kept?
A In the robot's memory
B In the robot's sensors
4. A robot has all its parts but no program loaded. What can it do?
A Nothing useful, as it has no instructions to follow
B It works out its own tasks and starts them
5. Which one is following a program?
A A toy car steered by a person with a handset
B A robot vacuum cleaner that cleans a room by itself

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1programmable ARemote control is not programming. The person decides each move live, and the car follows no stored instructions of its own.
2IF obstacle THEN turn ELSE move BA programmable robot can be given a new program. You change the instructions, not the whole machine.
3Reprogramming a robot for a new task: load new instructions and the robot does a different job Cmemory = empty -> robot action = none
4A robot with no program in memory has no instructions to follow, so it cannot do anything DThe robot follows a stored set of instructions, and changing the program changes what the robot does
5A person steers a toy car with a handset, so it is a programmable robot Eload program: paint_door -> load program: weld_frame
6To make a robot do a new task, you must build a new robot FA stored instruction in the robot's memory that the robot follows by itself, without a human controlling each move

Definitions

programmable

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
______ ← ["FORWARD", "TURN", "STOP"]
2.
program ← "weld" _______ ← "paint"
3.
IF program = _____ THEN OUTPUT "No instructions" ENDIF
4.
FOR EACH ____ IN program robot.do(step) NEXT
5.
IF program _ EMPTY THEN robot.run(program) ENDIF

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A program ← "weld,move,weld"
B STORE program IN keyboard
C RUN program
Question 2
A IF memory = EMPTY THEN
B OUTPUT "No program"
C robot.run()
D ELSE
E robot.run()
F ENDIF
Question 3
A newProgram ← pack boxes
B LOAD newProgram INTO memory
C RUN newProgram
Question 4
A WHILE program NOT finished
B READ joystick
C robot.do(instruction)
D ENDWHILE
Question 5
A FOR i ← 1 UNTIL 3
B robot.move(10)
C NEXT i

Answer Key

Characteristic of a robot: programmable
Section A: Quick Questions
Q1
B — It follows a stored set of instructions
Q2
A — Reprogram it with new instructions
Q3
A — In the robot's memory
Q4
A — Nothing useful, as it has no instructions to follow
Q5
B — A robot vacuum cleaner that cleans a room by itself
Section B: Match the Pairs
Q1
programmable → The robot follows a stored set of instructions, and changing the program changes what the robot does
Q2
IF obstacle THEN turn ELSE move → A stored instruction in the robot's memory that the robot follows by itself, without a human controlling each move
Q3
Reprogramming a robot for a new task: load new instructions and the robot does a different job → load program: paint_door -> load program: weld_frame
Q4
A robot with no program in memory has no instructions to follow, so it cannot do anything → memory = empty -> robot action = none
Q5
A person steers a toy car with a handset, so it is a programmable robot → Remote control is not programming. The person decides each move live, and the car follows no stored instructions of its own.
Q6
To make a robot do a new task, you must build a new robot → A programmable robot can be given a new program. You change the instructions, not the whole machine.
Section C: Definitions
Q1
programmable — A robot is programmable: it follows a stored set of instructions, and changing the program changes what the robot does. With no program it cannot act.
Section D: Fill in the Blanks
Q1
memory ← ["FORWARD", "TURN", "STOP"]
Q2
program ← "weld" program ← "paint"
Q3
IF program = EMPTY THEN OUTPUT "No instructions" ENDIF
Q4
FOR EACH step IN program robot.do(step) NEXT
Q5
IF program ≠ EMPTY THEN robot.run(program) ENDIF
Section E: Spot the Error
Q1
B — A robot's instructions are stored in its memory, not in a keyboard. The line should be STORE program IN memory.
Q2
C — With no program in memory the robot cannot act. In the empty branch it should stop, so this should be robot.stop() and not robot.run().
Q3
A — The new task is text, so it must be in quotes: newProgram ← "pack boxes". Without quotes it is not a valid string.
Q4
B — A programmed robot reads the next stored instruction. Reading a joystick would be remote control. It should be READ next instruction.
Q5
A — A FOR loop uses the keyword TO for its range. It should be FOR i ← 1 TO 3 so the stored instruction repeats three times.