Reference · Glossary + Construct Practice
Computer Science · Cheatsheet

Reference · Glossary + Construct Practice

Chapter 2 · Construct + Pseudocode Practice

📋 Reference · always available
IB pseudocode syntax
`loop while … end loop` · `if … then … else … end if` · `output` · `input` · `CapitalisedNames`. NOT Python syntax.
Construct checklist
Initialise before loop · check termination · output after loop · state input assumptions · handle edge cases.
Recursion base case
Always write the base case FIRST. Without it = stack overflow + [3] mark cap.
OOP keywords
Explicit `CLASS` / `PRIVATE` / `METHOD` / `CONSTRUCTOR` / `return`. Python lower-case style loses marks.
When to practice
Weekly drill, especially in the 6 weeks before Paper 1. The syntax patterns must be automatic under time pressure.