Various Computer Languages – LLL, HLL & Generations | BCA Sem 1 Notes | BKNMU Junagadh


BCA Sem 1  |  Unit 1  |  Computer Concepts & C Programming

Various Computer Languages Explained

Low-Level, Assembly, and High-Level Languages — Evolution, Classification, and Exam Notes

BKNMU Junagadh NEP 2020 Programming Languages Machine Code Generations of Languages
In simple words: A Computer Language is a system of notation designed to communicate instructions to a computer. Computer languages have evolved over several generations — moving from complex machine-level binary code to simple, human-readable high-level programming languages.
📖 Classification of Computer Languages

Broadly speaking, computer languages are divided into two main categories based on how closely they interact with computer hardware: Low-Level Languages (LLL) and High-Level Languages (HLL).

1st Gen: Binary

Machine Language

Direct binary code (0s and 1s) processed directly by the CPU. Fast execution, zero translation.

2nd Gen: Mnemonics

Assembly Language

Uses short symbolic codes (like ADD, MOV). Machine-dependent, requires an Assembler.

3rd-5th Gen: High Level

High-Level Language

English-like syntax (C, Java, Python). Machine-independent, translated via Compilers/Interpreters.

🎨 Common Programming Languages by Domain

Popular Languages Every BCA Student Should Know

C / C++ Java Python JavaScript
SQL Assembly Code
1️⃣ Comprehensive Comparison Table

Here is how the three fundamental levels of computer languages compare across key criteria:

ParameterMachine LanguageAssembly LanguageHigh-Level Language
SyntaxBinary digits (0s and 1s)Mnemonic symbols (MOV, ADD)English-like expressions
Hardware DependencyHighly machine dependentMachine dependentMachine independent (Portable)
Execution SpeedFastest (Direct execution)FastSlower than LLL (Requires translation)
Translator NeededNoneAssemblerCompiler or Interpreter
Memory EfficiencyHighest efficiencyHigh efficiencyLess efficient compared to LLL
Ease of LearningExtremely difficultDifficultEasy to learn and write
ℹ️ Key Takeaway: Portability is the single biggest advantage of High-Level Languages. Code written in C or Python on one computer can easily run on another machine with little to no modification!
🔍 Evolution: Generations of Programming Languages
1st & 2nd Generation
  • 1GL: Pure Machine Code (0s & 1s)
  • 2GL: Assembly Language with mnemonics
  • Direct access to CPU registers and hardware
  • No portability across different hardware architectures
3rd & 4th Generation
  • 3GL: Procedural & High-Level (C, FORTRAN, Pascal)
  • 4GL: Non-procedural & Data-focused (SQL, MATLAB)
  • Focuses on logic rather than hardware management
5th Generation (5GL)
  • Focuses on Artificial Intelligence & Constraint-based problem solving
  • Languages: Prolog, LISP, Mercury
  • Programs solve problems using visual constraints
💻 Code Comparison Across Language Levels

Notice how the instruction to add two numbers changes from Machine level to High-Level C code:

1. Machine Language (Binary):

; Adding two values directly in CPU memory 10110000 00000101 00000100 00001010

2. Assembly Language (Mnemonics):

MOV AL, 5 ; Load 5 into Register AL ADD AL, 10 ; Add 10 to Register AL

3. High-Level Language (C Syntax):

int a = 5; int b = 10; int sum = a + b; // Simple, English-like arithmetic logic
💡 Exam Tip: When answering 5-mark exam questions on "Types of Computer Languages," always draw the classification tree diagram showing LLL (Machine & Assembly) vs HLL (Procedural, Object-Oriented, Problem-Oriented).
🔄 How to Choose a Programming Language for a Project
1

System & Hardware Programming

Choose C, C++, or Rust for OS kernels, microcontrollers, embedded hardware, and high-performance gaming engines.

2

Enterprise Application Development

Choose Java or C# for robust, platform-independent, large-scale business software systems.

3

Web Development & Data Science

Choose JavaScript/TypeScript for interactive web apps, and Python for AI, Machine Learning, and Data Analytics.

⚠️ Common Mistake: HTML and CSS are Markup/Styling Languages, NOT Programming Languages, because they lack logical control flow (if-else conditions, loops, variable processing).
📝 Quick Revision — Exam Notes
  • Machine Language (1GL): The only language directly understood by the computer's CPU.
  • Assembly Language (2GL): Uses mnemonics (symbolic names) instead of binary instructions.
  • High-Level Language (3GL+): Machine-independent language with human-readable syntax.
  • Assembler: Software that translates Assembly Code into Machine Code.
  • Compiler: Translates entire high-level program into machine code in one single pass.
  • Interpreter: Translates high-level code line-by-line during runtime.
  • Portability: The capability of high-level programs to run on different computer platforms without modification.
  • 4GL Examples: SQL (Structured Query Language), SAS, MATLAB.

Post a Comment

Thanks for comment.

Previous Post Next Post