paper2.5.1
| Description | High-Level Language | Assembly Language | Machine Code |
|---|---|---|---|
| Instructions are represented by binary patterns (e.g., 10110011). | |||
| Uses mnemonics (e.g., LDA, ADD) to represent instructions. | |||
| Code is portable and can run on many different processor types. |
| Description | High-Level Language | Assembly Language | Machine Code |
|---|---|---|---|
| Instructions are represented by binary patterns (e.g., 10110011). | |||
| Uses mnemonics (e.g., LDA, ADD) to represent instructions. | |||
| Code is portable and can run on many different processor types. |
Row 1: Machine Code (✓)
Row 2: Assembly Language (✓)
Row 3: High-Level Language (✓)
prnit("Hello") instead of print("Hello").Syntax Error
Any two points + explanation:
1. Creates an executable file (1) - User doesn't need translator installed (1).
2. Protects source code (1) - Customers cannot read or edit proprietary code (1).
3. Faster execution (1) - Translation is already complete (1).
- Function: Allows the program to be executed inside the IDE (1).
- Benefit: Helps test for logic/runtime errors (1) without needing to compile separately (1).
- Language: Low-level (or Assembly).
- Reason: More memory efficient / smaller code size (1) or allows direct control of hardware (1).
L3 (5-6 marks): Covers all 3 points with precise terminology.
- Translation: High needs Compiler/Interpreter; Low (Assembly) needs Assembler.
- Hardware: High is portable; Low is machine dependent.
- Readability: High uses English-like keywords; Low uses binary/mnemonics.
- Executes code line-by-line (1).
- Stops immediately at an error (1).
- Makes it easier to find/debug errors (1).
- Allows running partial code (1). (Max 3).