Welcome back to our OCR GCSE Computer Science (J277) revision series! In this Paper 2 masterclass, we explore the crucial differences between Python (which you use in class) and the OCR Exam Reference Language (ERL) used in your exam papers.
Applying pure Python logic to an exam trace table or algorithm question can cost you marks. We put the Python editor and the ERL editor side-by-side to dismantle the three biggest traps:
Trap 1: String Manipulation: Why slicing in Python (`word[2:4]`) behaves completely differently to ERL's `.substring(2, 4)`.
Trap 2: Arithmetic Operators:** Swapping Python's `//` and `%` for ERL's explicit `DIV` and `MOD` keywords.
-Trap 3: Subprograms: Understanding why Python's lazy `def` keyword won't work in the exam, and how to properly declare `procedure` and `function`.