Representing algorithms

EasyMediumHard
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
Question 3
Easy

A robot is placed in a 5x5 grid at square C5, initially facing North (indicated by the ▲ symbol).

A 5x5 grid with columns labelled A to E and rows labelled 1 to 5. The cell C5 contains a black triangle pointing upwards representing the robot. All other cells are empty.

ABCDE
1
2
3
4
5▲

The robot executes the following algorithm:

Forward(2)
TurnRight()
Forward(1)
TurnLeft()
Forward(1)

Draw the path of the robot through the grid by listing the sequence of cells visited in order (starting with C5), and state its final cell and facing direction.

[3]

Representing algorithms Questions

  1. GCSE
  2. /Computer Science
  3. /Representing algorithms