CSS Computer Science (Optional) — Paper-I, Section-A, Topic I, p.24-28. Covers: Types of Programming Languages.

Definition

Classification of Programming Languages

Programming languages are classified along three largely independent axes — an exam question may ask about any one of them:

By Level: Low-Level vs High-Level

By Generation

Generation Description Example
1GL — Machine Language Raw binary instructions the CPU executes directly; no translation needed; extremely hardware-specific (low-level) Binary opcodes
2GL — Assembly Language Uses mnemonic codes (MOV, ADD) instead of raw binary; requires an assembler to convert to machine code (low-level) Assembly
3GL — High-Level Language Human-readable syntax, portable across machines; requires a compiler/interpreter (high-level) C, C++, Java, Python
4GL — Very High-Level Language Task-specific, closer to natural language, often used for database queries/report generation (high-level) SQL
5GL — Constraint/Logic-Based Programs specify goals/constraints rather than step-by-step instructions; the system determines how to achieve them (high-level) Prolog

By Translation Method

By Programming Paradigm