Paradigms (Cambridge (CIE) A Level Computer Science): Revision Note
Exam code: 9618
Paradigms
What is a programming paradigm?
A programming paradigm is a style or approach to programming that influences:
How programs are written
How problems are broken down
How solutions are structured
Different paradigms are suited to different types of problems and systems
Programming paradigms comparison table
Paradigm | Description | Key characteristics | Examples |
---|---|---|---|
Low-level | Closest to machine code, using mnemonics to directly control hardware | - Direct memory access | x86 Assembly, ARM Assembly |
Imperative (Procedural) | Tells the computer how to perform tasks using sequences of commands | - Step-by-step instructions | C, Pascal, Python (procedural) |
Object-Oriented | Models real-world entities using objects that combine data and behaviour | - Classes and objects | Java, C++, Python (OOP) |
Declarative | Describes what should be done, not how to do it | - Rule-based or logic-based | SQL, Prolog, Haskell |
Strengths and weaknesses of programming paradigms
Paradigm | Strengths | Weaknesses |
---|---|---|
Procedural | - Clear flow of control (top to bottom) | - Becomes hard to manage in large programs |
Object-Oriented | - Enhances modularity with encapsulation | - Can become overly complex |
Low-Level (Assembly) | - Complete control over hardware | - Steep learning curve |
Declarative | - Focuses on the result rather than the process | - Harder to learn for beginners |
You've read 1 of your 5 free revision notes this week
Unlock more, it's free!
Did this page help you?