AQA 7517 requires knowledge of the following arithmetic operators used in pseudocode and high-level languages:
| Operation | AQA Pseudocode | Example | Result |
|---|---|---|---|
| Addition | + | 7 + 3 | 10 |
| Subtraction | - | 10 - 4 | 6 |
| Multiplication | * | 5 * 6 | 30 |
| Real Division | / | 7 / 2 | 3.5 |
| Integer Division (quotient) | DIV | 7 DIV 2 | 3 |
| Modulus (remainder) | MOD | 7 MOD 2 | 1 |
| Exponentiation | ^ | 2 ^ 8 | 256 |
DIV returns the integer quotient (whole number part) of a division: 17 DIV 5 = 3
MOD returns the remainder after integer division: 17 MOD 5 = 2
Key applications of MOD in exam questions:
IF n MOD 2 = 0 THEN n is evenhour MOD 12 wraps hours back into 0–11Relational operators compare two values and evaluate to a Boolean (True or False):
| Operator | Meaning | Example | Result |
|---|---|---|---|
= | Equal to | 5 = 5 | True |
≠ | Not equal to | 5 ≠ 3 | True |
< | Less than | 3 < 5 | True |
> | Greater than | 7 > 10 | False |
≤ | Less than or equal to | 5 ≤ 5 | True |
≥ | Greater than or equal to | 6 ≥ 7 | False |
Boolean operators combine or negate Boolean values/conditions:
| Operator | Description | Example | Result |
|---|---|---|---|
| AND | True only if BOTH operands are True | True AND False | False |
| OR | True if AT LEAST ONE operand is True | True OR False | True |
| NOT | Inverts the Boolean value | NOT True | False |
| A | B | A AND B | A OR B | NOT A |
|---|---|---|---|---|
| True | True | True | True | False |
| True | False | False | True | False |
| False | True | False | True | True |
| False | False | False | False | True |
When multiple operators appear in an expression, they are evaluated in this order (BODMAS-style):
()^* / MOD DIV+ -= ≠ < > ≤ ≥<> or ≠ for "not equal to". MOD and DIV are very commonly tested — practise evaluating expressions like 23 MOD 7 (answer: 2) and 23 DIV 7 (answer: 3)./ (real division, gives decimal) with DIV (integer quotient) — 7/2=3.5 but 7 DIV 2=3NOT applies to the whole expression after it, not just the next termAND and OR with equal precedence — AND has higher precedence than OR!= instead of ≠ in AQA pseudocode (lose presentation marks)8 questions · instantly marked · AQA 7517 standard
| Term | Definition |
|---|
10 questions · 10 minutes