←

Autonomous routines

From Mock A · Paper 1: Written examination
16(c)4 marks
The robot must move forward until it reaches Room 12. If an obstacle is detected within 50 cm, it must stop, wait 5 seconds and then check again before continuing. Write an algorithm, in pseudocode or Python, for this routine.
From Mock B · Paper 1: Written examination
14(a)4 marks
A smart traffic light at a junction has a road sensor that counts the cars waiting on the side road and a timer that measures how long the first car has waited. The main road normally has a green light. The side road should get a green light if 5 or more cars are waiting or a car has waited for more than 60 seconds. Write an algorithm, in pseudocode or Python, for this routine.
From Mock B · Paper 1: Written examination
14(c)2 marks
Describe how the routine could be tested in a simulated environment before it is used on a real road.
From Mock C · Paper 1: Written examination
12(c)2 marks
A different maze agent uses this routine:
WHILE not at exit    IF path ahead is clear THEN        move forward    ELSE        turn right    ENDIFENDWHILE
Explain one problem with this routine.
From Mock D · Paper 1: Written examination
14(d)3 marks
When it reaches the house, the drone must descend until its height sensor reads 0. If its downward obstacle sensor detects something below it, it must stop descending and hover. Write an algorithm for this routine.
From Mock E · Paper 1: Written examination
91 mark
Which control structure would make a security robot keep repeating its patrol route?
From Mock E · Paper 1: Written examination
12(b)2 marks
The guard can see the player and hears a noise at the same time. State what the guard does and explain why.
From Mock E · Paper 1: Written examination
12(c)3 marks
Rewrite the routine so that if the guard's health is below 20 it retreats to base. This must take priority over everything else.
From Mock E · Paper 1: Written examination
15(a)5 marks
An autonomous lawnmower has these inputs: - boundary sensor – detects the wire at the edge of the lawn - bump sensor – detects hitting an object - rain sensor - battery level (%) It should mow until the battery falls to 20% or below, or it starts to rain, and then return to its charging dock. When it reaches the boundary it should turn; if it bumps into something it should reverse and turn. Write an algorithm for this routine in pseudocode or Python.
From Mock E · Paper 1: Written examination
15(b)3 marks
Describe how the lawnmower routine could be tested in a simulated environment.
From Mock F · Paper 1: Written examination
12(b)4 marks
Write a routine, in pseudocode or Python, that makes the robot follow the line using the rules in 12(a) until it reaches the finish line.
Score 0 / 33 · 0 of 11 marked

This paper is written by Plasmo in the style of the LRN GCSE Artificial Intelligence exam. It is not a past paper and is not produced or endorsed by the exam board.

Autonomous routines Exam Questions: LRN GCSE Artificial Intelligence | Plasmo