Programming languages are classified by how closely they resemble machine code (low-level) or natural language (high-level). Lower-level = more machine-specific; higher-level = more human-readable and portable.
The only language a CPU can directly execute — binary instructions (0s and 1s). Each instruction type is represented as a binary opcode. Program execution is direct with no translation needed.
Uses human-readable mnemonics for machine code operations (e.g. MOV, ADD, SUB, JMP). One mnemonic = one machine code instruction. Translated to machine code by an assembler.
| Feature | Detail |
|---|---|
| Level | Low-level — close to machine code |
| Portability | Not portable — specific to CPU architecture |
| Speed | Very fast after assembly — near machine code speed |
| Use case | Device drivers, embedded systems, performance-critical code |
| Example | MOV AX, 5 ; store 5 in register AX |
Languages closer to human language and mathematical notation. One line can represent many machine code instructions. Translated by a compiler or interpreter.
| Feature | Low-Level (Assembly) | High-Level |
|---|---|---|
| Readability | Difficult for humans | Easy to read |
| Portability | Specific to CPU architecture | Portable across platforms |
| Control | Direct hardware control | Abstracted — less direct control |
| Development speed | Slow — verbose | Fast — concise |
| Runtime performance | Very fast | Slightly slower (translation overhead) |
| Use case | OS kernels, drivers, embedded systems | Application development, web, AI |
Programs defined as a sequence of instructions — step-by-step HOW to do something. Uses procedures/subroutines. Examples: C, Pascal, older BASIC.
Programs organised as objects with data (attributes) and behaviours (methods). Key principles: encapsulation, inheritance, polymorphism, abstraction. Examples: Java, Python, C#.
Programmer describes WHAT result is needed, not HOW to compute it. Examples: SQL (query databases), HTML (structure web pages), Prolog (logic programming).
8 questions · instantly marked · AQA 7517 standard
| Term | Definition |
|---|
10 questions · 10 minutes