What you'll learn
The building blocks and common errors of programs.
Key ideas
- Variables vs constants; selection (IF) and iteration (loops).
- Subroutines are reusable code; comments explain code.
- Syntax errors break language rules; logic errors give wrong results.
Exam tips
- Distinguish syntax from logic errors.
- Use subroutines to structure code.
Common mistakes
- Confusing syntax and logic errors.
- Confusing selection and iteration.