Robot Programming Basics
Preguntas 10
Las respuestas correctas se muestran a los docentes que han iniciado sesión.
-
Purpose of a Sensor
A robot needs to stop moving when it gets close to a wall. Which part of the robot is responsible for detecting the distance to the wall?
The wheel
The sensor
The battery
The motor
Think about the part of a robot that collects information from the environment, such as light, sound, or distance. -
-
Repeat Loop Behaviour
A program contains the instruction "Repeat 4 times: move forward 20 cm, turn right 90 degrees." What shape does the robot most likely trace on the floor?
A straight line 80 cm long
A triangle with 90 cm sides
A square with 20 cm sides
A circle
Consider what happens after each of the four repetitions of moving forward and turning right by a right angle. -
Loop Until a Condition
A robot should keep driving forward until its light sensor detects a dark line, then stop. Which programming structure is most suitable for this task?
A single move command with no sensor reading
A repeat loop that runs exactly 10 times
A conditional loop that repeats until the sensor detects the dark line
A command that only turns the robot in place
The number of repetitions is not known in advance; it depends on what the sensor reports while the robot is moving. -
-
-
-
-
Total distance in nested loops
A robot program contains the following instructions:
Repeat 3 times:
Repeat 4 times:
Move forward 25 cm
Assuming the robot moves exactly as the program says and nothing else is included, what is the total distance the robot travels, in centimetres?First find how far the robot moves in the inner loop, then multiply that by how many times the outer loop repeats. -
Sensors versus actuators
Explain in your own words the difference between a sensor and an actuator (such as a motor) on a robot. Give one example of each and explain what job it does for the robot.
Think about the direction of information: what does the robot receive from its surroundings, and what does the robot do to change its surroundings?
Acerca de
- Materias
- Science & Technology
- Etiquetas
- Añadido por IA robot commands Añadido por IA robot sensors Añadido por IA loops and conditions
- Público
- Educación secundaria · Grados 7–8
- Dificultad
- 5 de 10
- Idioma
- Inglés
- Quién puede verlo
- Todo el mundo
- Completado por IA
- Lo marcado con un destello lo añadió la IA.
- Escrito por IA
- Claude Haiku 5.5
- Creado
Comentarios