Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1mechanical structure + electrical components + program | ANot a robot, because one of the three characteristics is missing (it cannot be programmed) | |
| 2mechanical structure + electrical components + NO program | BThe three characteristics a device must have together to count as a robot | |
| 3Describing a robot using the three headings in an exam answer | CA robot needs all three characteristics, not just a program. It also needs a mechanical structure and electrical components. | |
| 4Missing one characteristic means the device is not a robot | DMechanical structure: metal arm | Electrical components: motors, sensors | Program: instructions it follows | |
| 5A toaster has a metal body and electrical parts, so it is a robot. | Ehas_structure = True has_electrical = True has_program = False is_robot = has_structure AND has_electrical AND has_program | |
| 6A robot only needs a program to be a robot: is_robot = has_program | FIt has no program that controls its actions, so one characteristic is missing. All three are needed. |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
mechanical structure + electrical components + program — A device is a robot only if it has all three: a mechanical structure, electrical components and a program. If any one is missing, it is not a robot.IF structure AND electrical AND program THEN
OUTPUT "Robot"
ENDIFIF program = FALSE THEN
OUTPUT "Not a robot"
ENDIFcount ← 3
IF count = 3 THEN
OUTPUT "Robot"FOR i ← 1 TO 3
OUTPUT characteristic[i]
NEXT iIF NOT electrical THEN
OUTPUT "Not a robot"
ENDIF