String concatenation:Use + to join strings: 'Name: ' + name
Arithmetic Operators
AQA Arithmetic — All 6 Operators
Operator
Meaning
Example
Result
+
Addition
5 + 3
8
-
Subtraction
10 - 4
6
*
Multiplication
3 * 4
12
/
Division (real)
7 / 2
3.5
DIV
Integer division
7 DIV 2
3
MOD
Remainder
7 MOD 2
1
⚡ Exam Tip:DIV and MOD are frequently tested. Know that 17 DIV 5 = 3 and 17 MOD 5 = 2.
Exam Practice
Have a go at this question
AQA-style question
Write a pseudocode program that: • Reads a number of seconds from the user • Calculates and outputs the number of complete minutes (use DIV) • Calculates and outputs the remaining seconds (use MOD)
4 marks
MODEL ANSWER
seconds ← INT(USERINPUT) minutes ← seconds DIV 60 remaining ← seconds MOD 60 OUTPUT minutes OUTPUT remaining
Key Takeaways
What to Remember
Variable = value can change · Constant = value fixed for entire program
AQA uses ← for assignment and USERINPUT (always returns a String)
DIV = integer division (floor) · MOD = remainder after division
Cast with INT() or REAL() when reading numbers from input