Types of Programming Language, Translators And Integrated Development Environments (IDEs) (Copy)
IGCSE / O Level Computer Science Cheat Sheet
Topic: 4.2 Types of Programming Language, Translators, and IDEs
🧾 High-Level vs Low-Level Languages
| Feature | High-Level Language | Low-Level Language |
|---|---|---|
| Readability | Human-readable (English-like) | Hard to read (machine-oriented) |
| Portability | Machine-independent | Machine-dependent |
| Examples | Python, Java, C++ | Assembly Language |
| Control over hardware | Limited | Direct hardware manipulation |
🔣 Assembly Language (Low-Level)
- Uses mnemonics instead of binary (e.g.
LDA,MOV,ADD) - Requires assembler to convert to machine code
⚙️ Translators
| Type | Function | Output |
|---|---|---|
| Compiler | Translates whole code into machine code at once | Executable file |
| Interpreter | Translates and runs code line-by-line | No executable |
| Assembler | Converts assembly language to machine code | Binary code |
🔁 Compiler vs Interpreter
| Feature | Compiler | Interpreter |
|---|---|---|
| Speed | Faster execution after compilation | Slower (translates during run) |
| Error Handling | Shows all errors after compiling | Stops at first error |
| Output | Creates executable | No file generated |
| Used for | Final release | Debugging/development |
🖥️ IDE – Integrated Development Environment
Software tool used to write, debug, and run code.
Common Features:
| Feature | Function |
|---|---|
| Code Editor | Write and modify source code |
| Run-time Environment | Test and execute programs inside the IDE |
| Translator | Built-in compiler/interpreter |
| Error Diagnostics | Detect and display syntax errors |
| Auto-completion | Suggests keywords/functions while typing |
| Auto-correction | Fixes minor syntax issues automatically |
| Prettyprint | Formats code for better readability |
🔁 Local vs Global Variables
| Type | Scope |
|---|---|
| Local | Only within a specific function/procedure |
| Global | Accessible throughout the entire program |
🔧 Procedures & Functions
| Feature | Procedure | Function |
|---|---|---|
| Returns | No return value | Always returns a value |
| Use Case | Perform a task | Perform calculation and return result |
| Parameters | Optional | Optional |
