- Asked 4/16
- 2072 Kartik · 4 marks
- 2073 Shrawan · 1+3 marks
- 2070 Chaitra · 4 marks
- 2073 Chaitra · 3 marks
Generations of programming languages
Short answer
Programming languages are grouped into five generations: 1GL (machine language, binary), 2GL (assembly, mnemonics), 3GL (high-level, portable like C), 4GL (non-procedural like SQL), and 5GL (AI languages like Prolog). Each generation is more human-oriented, but higher generations are usually slower and give less hardware control.
Explain the generations of programming languages.
Programming languages are grouped into five generations, from machine-oriented to human-oriented.
| Generation | Name | Features | Example |
|---|---|---|---|
| 1GL | Machine language | Binary 0s and 1s, directly executed by the CPU, machine dependent, very hard to write | 10110000 01100001 |
| 2GL | Assembly language | Mnemonics (MOV, ADD) translated by an assembler, machine dependent | 8085/8086 assembly |
| 3GL | High-level language | English-like statements, portable, needs compiler or interpreter | C, C++, Java, FORTRAN, Pascal |
| 4GL | Very high-level / non-procedural | You state what is wanted, not how; used for databases and reports | SQL, report generators |
| 5GL | Artificial-intelligence languages | Problems solved by constraints and logic instead of algorithms | Prolog, Mercury, OPS5 |
- Each generation is easier to read and write than the previous one.
- Higher generations are more portable but usually slower and give less control over hardware.
- Programs written in 2GL and above must be translated to machine code before the computer can run them.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Categories of programming languages · Computer Programming, chapter 1
- High level vs low level languages · Computer Programming, chapter 1 · asked 2×
- High level languages; C versus FORTRAN · Computer Programming, chapter 1
- High level languages and natural language · Computer Programming, chapter 1
- Libraries, system software, languages, OO · Multimedia System, chapter 7