This study notes covers Operator Types within Operators for GCSE Computer Science. Revise Operators in 3.2 Programming for GCSE Computer Science with 15 exam-style questions and 8 flashcards. This topic appears less often, but it can still be a useful differentiator on mixed-topic papers. It is section 3 of 7 in this topic. Use this study notes to connect the idea to the wider topic before moving on to questions and flashcards.
Operator Types
| Type | Operator | Meaning | Example |
|---|---|---|---|
| Arithmetic | + | Addition | 5 + 3 = 8 |
| - | Subtraction | 5 - 3 = 2 | |
| * | Multiplication | 5 * 3 = 15 | |
| / | Division | 5 / 2 = 2.5 | |
| DIV (//) | Integer division | 5 DIV 2 = 2 | |
| MOD (%) | Modulus (remainder) | 5 MOD 2 = 1 | |
| Comparison | == | Equal to | 5 == 5 → true |
| != | Not equal to | 5 != 3 → true | |
| <, >, <=, >= | Less/greater than | 5 > 3 → true | |
| Logical | AND | Both must be true | true AND false → false |
| OR | At least one true | true OR false → true | |
| NOT | Inverts value | NOT true → false |
Practice questions for Operators
Which symbol is used as the equality comparison operator in OCR pseudocode?
Describe how each of the three Boolean operators AND, OR, and NOT work. Include when each returns TRUE.
Quick recall flashcards
What does DIV do?
Integer division (discards remainder)
What does MOD do?
Returns the remainder after division