AQA A-level Computer Science (7517)Specification point 4.1.1.4

AQA 7517 4.1.1.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

At GCSE you used the arithmetic operators (F1.9), and, or and not (F2.3), string handling (F3.1) and randint (F3.7). A level adds the details that trip people up: what integer division does with negative numbers, the difference between rounding and truncating, exclusive or, converting between strings, numbers and dates, and why random numbers from a computer are not really random.

  • Arithmetic
  • Relational and Boolean operations
  • String handling
  • Random number generation
Read the free lesson (20 min)

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

Lessons that teach it

  1. A1.2 Operations, strings and random numbers Programming techniques and object-oriented programming
    Integer division and MOD with negatives, rounding and truncation, XOR, string and date conversions, and pseudo-random numbers.

Try it on a robot

The task from A1.2 Operations, strings and random numbers, running here. Change the program and press Run.

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