AQA GCSE Computer Science (8525)Specification point 3.2.4

AQA 8525 3.2.4: Relational operations in a programming language

The free BugBot lesson that teach this point, a robot to try it on, and the past-paper questions that test it.

What it covers

Every program so far did the same thing every time. A robot that only does that is a toy. From this lesson on, your programs look at the world and choose. Choosing which lines run is called selection.

  • Questions with a yes-or-no answer
  • if: run a block only when the answer is True
  • Predict, then run
  • Comparing text
  • The answer can come from a variable
Read the free lesson (12 min)

Or do it in the simulator, with tasks that mark themselves

Lessons that teach it

  1. F2.2 Selection: if Decisions and loops
    Relational operators, and a block that runs only when a condition is true.

Try it on a robot

The task from F2.2 Selection: if, running here. Change the program and press Run.

Past paper questions on this

Real exam questions that test this, each worked through with a program you can run.

The specification is AQA's own document; this page says which of our lessons teach point 3.2.4 and is not endorsed by the board.