postUpdated Apr 16, 2026

Computer Languages – Complete Notes for IBPS, SSC, RRB & Govt Exams

Computer Languages is a regularly tested chapter in IBPS, SSC CGL, RRB NTPC, and all state government exams. This post covers the complete classification of programming languages — Machine Language, Assembly Language, High-Level Languages with their inventors and years, all three translators (Assembler, Interpreter, Compiler), generations of languages, types of errors, and Object-Oriented Programming — with memory tricks, one-liners, and 10 exam-focused FAQs.

Computer Languages – Complete Notes for IBPS, SSC, RRB & Govt Exams

Jump to section

Introduction: Why Computer Languages is a High-Scoring Chapter

Every computer works because someone wrote a program — a set of instructions — in a language the machine can understand. Computer Languages is the bridge between human thinking and machine execution.

In government job exams, this chapter is tested in multiple ways:

  • "Which language is directly understood by the computer?" → Machine Language
  • "FORTRAN was developed by ___" → IBM, 1957
  • "Which translator converts HLL to machine language line by line?" → Interpreter
  • "Which language is used for AI?" → LISP, Python
  • "What does OOP stand for?" → Object-Oriented Programming
  • "A program error that runs but gives wrong results is called ___" → Logical Error

Questions from this chapter are mostly factual and direct — making them easy to score if you have the key details memorised. The chapter also forms the conceptual foundation for understanding Software (Chapter 9) and Operating Systems (Chapter 10).

This post gives you the complete picture — every language category, every important language with its inventor and year, all three translators compared side-by-side, all four error types, and the full OOP concept — all in one place.


What is a Computer Language?

computer language (or programming language) is a formal set of rules, symbols, and vocabulary used to write instructions (programs) that a computer can understand and execute.

Why do we need programming languages? A computer's CPU only understands machine language (binary — 0s and 1s). Humans find it nearly impossible to write programs in binary. Programming languages provide a middle ground — they allow humans to write programs in a more understandable form, which is then translated into machine language for the computer to execute.

Key Relationship:


Low-Level Languages

Low-Level Languages (LLL) are programming languages that are very close to the hardware — they deal directly with the computer's physical components. They are difficult for humans to understand but easy for the machine to process.

Machine Language (1GL - First Generation Language)

Machine Language is the only language a computer directly understands without any translation.

FeatureDetails
Generation1GL (First Generation Language)
RepresentationBinary (0s and 1s) — sequences of bits
Example10110000 01100001 (an x86 instruction to move a value)
Machine dependent?Yes — a program written for one CPU type will not work on another
Human readable?No — extremely difficult to read, write, or debug
SpeedFastest — no translation needed
Error detectionVery difficult — no error messages

Advantage: Maximum speed — no translation step needed, CPU executes directly. Disadvantage: Nearly impossible for humans to write or understand; completely machine-specific.

Assembly Language (2GL - Second Generation Language)

Assembly Language was developed to make programming slightly easier by replacing binary codes with short, symbolic codes called mnemonics.

FeatureDetails
Generation2GL (Second Generation Language)
RepresentationMnemonic codes — short symbolic abbreviations
ExampleMOV AX, 5 (instead of binary to move value 5 into register AX)
Machine dependent?Yes — still specific to a particular CPU architecture
Human readable?Slightly — mnemonics are abbreviated English words
Translator neededAssembler converts assembly → machine language

Common Mnemonic Examples:

  • ADD — Addition
  • MOV — Move data
  • SUB — Subtraction
  • JMP — Jump to an address
  • CMP — Compare two values

Advantage over Machine Language: Much easier to write and debug; mnemonics are memorable. Disadvantage: Still machine-dependent; still difficult for complex applications.


Medium-Level Language

Medium-Level Languages act as a bridge between low-level (hardware-close) and high-level (human-friendly) languages. They provide both low-level hardware control and high-level readability.

FeatureDetails
Key ExampleC language (1972, Dennis Ritchie, Bell Labs)
Why "medium"?C can directly manipulate hardware (memory addresses, pointers) like low-level, but is written in a readable syntax like high-level
Use caseSystem programming — operating systems (Unix, Linux, Windows kernel), device drivers, embedded systems

C is used to write operating system kernels — Linux is written in C. This dual capability makes it uniquely powerful.


High-Level Languages (HLL)

High-Level Languages (HLL) are designed to be close to human language — they use English-like syntax and abstract away hardware details. They are:

  • Easy to read, write, and understand
  • Platform-independent (mostly) — the same code can run on different computers
  • Require a translator (Compiler or Interpreter) to convert to machine language

Important High-Level Languages - Inventor, Year & Purpose

This table is extremely important for exams — questions about language inventors and years appear repeatedly:

LanguageYearDeveloper / InventorPrimary Application
FORTRAN1957IBM teamScientific and mathematical calculation — FORmula TRANslation
ALGOL1958European and American scientistsScientific computing; algorithmic language
LISP1958John McCarthy (MIT)Artificial Intelligence — List Processing
COBOL1959Grace HopperBusiness management and data processing — Common Business Oriented Language
BASIC1964Kemeny & Kurtz (Dartmouth College)Education — Beginner's All-purpose Symbolic Instruction Code
Pascal1970Niklaus WirthEducation and structured programming
C1972Dennis Ritchie (Bell Labs)System programming, OS development
C++1985Bjarne Stroustrup (Bell Labs)Object-oriented system programming
Java1995James Gosling (Sun Microsystems)Internet applications; platform-independent ("Write Once, Run Anywhere")
Python1991Guido van RossumAI/ML, Data Science, Web, Automation — most popular language today
Swift2014AppleiOS and macOS app development
Kotlin2011JetBrains / GoogleAndroid app development (official language)
Rust2015MozillaSystems programming with memory safety
Go (Golang)2009GoogleCloud services, backend development
JavaScript1995Brendan Eich (Netscape)Interactive web pages (front-end web development)
PHP1994Rasmus LerdorfServer-side web development
SQL1974IBM (Donald Chamberlin & Ray Boyce)Database querying and management

Key Inventors to Memorise for Exams:

PersonLanguage/Achievement
Grace HopperCOBOL (1959) — also invented the first compiler
Dennis RitchieC language (1972)
Bjarne StroustrupC++ (1985)
James GoslingJava (1995)
Guido van RossumPython (1991)
John McCarthyLISP (1958); coined the term "Artificial Intelligence"
John von NeumannEarly programming concepts and computer architecture

Generations of Programming Languages (1GL to 5GL)

GenerationNameDescriptionExamples
1GLMachine LanguageBinary (0s and 1s); directly executed by CPUBinary code
2GLAssembly LanguageMnemonic codes; needs an AssemblerAssembly, Mnemonic codes
3GLHigh-Level LanguageEnglish-like syntax; needs Compiler/InterpreterC, C++, Java, Python, FORTRAN
4GLFourth Generation LanguageHuman-like statements; close to natural language; used in databasesSQL, MATLAB, R
5GLFifth Generation LanguageVisual/declarative programming; AI-based problem solvingVisual Basic, Prolog, Mercury

Key Evolution: Each generation moves further from the machine and closer to human language — making programming easier but requiring more powerful translation tools.


Language Translators

translator is a system software tool that converts a program written in one language into another language — specifically, it converts higher-level human-written code into machine language that the CPU can execute.

There are three types of translators:

Assembler

FeatureDetails
ConvertsAssembly language (2GL) → Machine language
InputAssembly code (using mnemonics)
OutputObject code (machine language binary)
Translation methodTranslates the entire program at once
SpeedFast translation

The Assembler is the first translator in computer history — it enabled programmers to move from pure binary to symbolic mnemonics.

Interpreter

FeatureDetails
ConvertsHigh-Level Language (HLL) → Machine language
Translation methodLine by line — translates and executes one statement at a time
Error reportingStops at the first error — does not continue until the error is fixed
Object codeNot saved — translates fresh every time the program runs
SpeedSlower execution (translates while running)
Best forDebugging and interactive programming
Used byPython (default), Ruby, JavaScript

Compiler

FeatureDetails
ConvertsHigh-Level Language (HLL) → Machine language
Translation methodTranslates the entire program at once before execution begins
Error reportingReports ALL errors with line numbers — programmer can fix all at once
Object codeSaved as an executable file — no need to recompile for each run
SpeedFaster execution (compiled code runs at near-machine speed)
Best forProduction software, performance-critical applications
Used byC, C++, Java (to bytecode), Rust, Go

Assembler vs Interpreter vs Compiler - Key Comparison

FeatureAssemblerInterpreterCompiler
ConvertsAssembly → MachineHLL → MachineHLL → Machine
MethodWhole programLine by lineWhole program
Error reportingStops at first errorAll errors at once
Object codeYesNoYes
Speed of executionFastestSlowestFast
MemoryLessMore (translates each time)More (stores object code)
ExamplesNASM, MASMPython, Ruby, JavaScriptGCC (C), g++ (C++), javac (Java)

Exam Tip — Key Distinctions:

  • InterpreterLine by lineStops at first errorNo object code saved
  • CompilerWhole programAll errors reportedObject code saved

Types of Programming Errors (Bugs)

bug is an error in a computer program that causes it to produce incorrect results or behave unexpectedly. The term "bug" originated when an actual moth caused a malfunction in the Harvard Mark II computer in 1947 — found by Grace Hopper's team.

Error TypeWhen It OccursDescriptionExample
Syntax ErrorDuring compilation/interpretationViolation of the grammar rules of the programming languageMissing semicolon, misspelled keyword, wrong bracket
Semantic ErrorDuring compilationThe statement is syntactically correct but meaningless to the compilerUsing a variable before declaring it
Logical ErrorDuring or after executionProgram runs without crashing but produces wrong resultsUsing + instead of − in a formula
Runtime ErrorDuring executionProgram crashes while running due to an illegal operationDividing by zero, accessing invalid memory

Debugging — The process of finding, analysing, and fixing bugs in a program. Grace Hopper is often credited with popularising the term.


Object-Oriented Programming (OOP)

Object-Oriented Programming (OOP) is a programming paradigm that organises software as a collection of objects — each object combines data (attributes) and the functions (methods) that operate on that data.

In OOP, instead of writing a list of instructions to execute, you define objects that represent real-world entities and how they interact.

Core Concepts:

  • Class — A blueprint or template for creating objects (like a cookie cutter)
  • Object — An instance of a class (like a cookie made from the cutter)
  • Attribute — Data/properties of an object (e.g., a car's colour, speed, brand)
  • Method — Functions that an object can perform (e.g., a car's start(), stop(), accelerate())

Four Pillars of OOP

PillarDescriptionExample
EncapsulationBundling data and methods together inside an object; hiding internal detailsA capsule that contains medicine — you use it without knowing the formula
AbstractionShowing only essential features; hiding unnecessary complexityUsing a TV remote without knowing the internal circuit
InheritanceA new class can inherit (reuse) properties and methods of an existing classA "Car" class inheriting from a "Vehicle" class
PolymorphismSame method name behaves differently for different objectsA "draw()" method draws a circle for a Circle object and a rectangle for a Rectangle object

OOP Languages

The following programming languages support Object-Oriented Programming:

LanguageOOP SupportPrimary Use
JavaFull OOPWeb/enterprise applications, Android
C++OOP + ProceduralSystem programming, games
PythonOOP + Multi-paradigmAI/ML, Data Science, Web
C#Full OOPWindows applications, game development (Unity)
PHPOOP + ProceduralWeb development
RubyFull OOPWeb development (Ruby on Rails)
DartFull OOPFlutter/mobile apps
SwiftOOP + FunctionaliOS/macOS apps
KotlinOOP + FunctionalAndroid apps

Key Programming Terms

TermMeaning
AlgorithmA step-by-step, ordered set of instructions for solving a specific problem — the logic before writing code
FlowchartA visual/graphical diagram that represents the steps of an algorithm using standard symbols
PseudocodeAn informal, human-readable description of a program's logic — not a real language, not machine-executable
DebuggingThe process of identifying, analysing, and fixing errors (bugs) in a program
Reserved Words / KeywordsWords that the programming language has set aside for its own use — cannot be used as variable names (e.g., if, while, class, return)
VariableA named storage location in memory that holds a value which can change during program execution
LoopA programming construct that executes a set of statements repeatedly until a condition is met
Function / MethodA named, reusable block of code that performs a specific task
Object CodeThe output produced by a compiler — machine language that the CPU can execute
Source CodeThe human-written program code in a programming language
Scripting LanguageA high-level language that is interpreted rather than compiled; typically used for automating tasks (e.g., JavaScript, Python, Perl, Bash)
IDE (Integrated Development Environment)A software application that provides tools for writing, debugging, and running code (e.g., Visual Studio Code, IntelliJ, PyCharm)
API (Application Programming Interface)A set of rules and tools that allows different software applications to communicate with each other

Memory Tricks

🔑 Language Levels — Low to High:

"Machine Asks High Questions" = Machine → Assembly → High Level Or simply: LLL (Low Level Language) → MLL (Medium) → HLL (High Level)

🔑 HLL Inventors — Key ones to memorise:

"Grace Helped Code Better"Grace Hopper → COBOL "Dennis Really Coded"Dennis Ritchie → C (at Bell Labs) "James Got Java"James Gosling → Java (Sun Microsystems) "Guido's Python Grew"Guido van Rossum → Python

🔑 Language Year Sequence (Chronological):

FORTRAN(1957) → ALGOL/LISP/COBOL(1958-59) → BASIC(1964) → Pascal(1970) → C(1972) → C++(1985) → Python(1991) → Java(1995)

🔑 Translators — Key Differences:

Interpreter = "I work Instantly, Instruction by instruction, but I Stop at errors" Compiler = "I Collect ALL errors, Compile everything first, then you run"

🔑 OOP Pillars — "EIAP":

Encapsulation | Inheritance | Abstraction | Polymorphism Mnemonic: "Every Indian Achieves Progress"

🔑 Error Types — "SSLR":

Syntax → Semantic → Logical → Runtime Mnemonic: "Students Sometimes Learn Really"


One-Liner Recap (Quick Revision)

  1. A computer language is a formal set of rules and vocabulary used to write instructions (programs) that a computer can understand, ranging from binary machine language to human-friendly high-level languages.
  2. Machine Language (1GL) is the only language directly understood by the CPU — it consists entirely of binary (0s and 1s) and is completely machine-dependent.
  3. Assembly Language (2GL) uses symbolic mnemonic codes (like ADD, MOV, SUB) instead of binary and requires an Assembler to translate it to machine language.
  4. High-Level Languages (HLL) use English-like syntax, are platform-independent, and require either a Compiler or Interpreter to translate to machine language.
  5. FORTRAN (1957, IBM) was the first high-level language, designed for scientific calculations; COBOL (1959, Grace Hopper) was designed for business management.
  6. LISP (1958, John McCarthy, MIT) is the oldest AI language; Python (1991, Guido van Rossum) is today's most popular AI/ML and general-purpose language.
  7. Java (1995, James Gosling, Sun Microsystems) introduced the "Write Once, Run Anywhere" concept through the Java Virtual Machine (JVM), making it truly platform-independent.
  8. An Assembler converts Assembly Language to Machine Language; an Interpreter converts HLL to machine language line by line; a Compiler converts the entire HLL program at once.
  9. An Interpreter stops at the first error it encounters and executes line by line without saving object code, making it best for debugging and interactive programming.
  10. A Compiler translates the entire program, reports all errors together with line numbers, saves the object code as an executable, making compiled programs run faster.
  11. Syntax errors occur when programming grammar rules are violated; Logical errors occur when the program runs correctly but produces wrong results; Runtime errors crash the program during execution.
  12. Object-Oriented Programming (OOP) organises software as objects — each object combines data (attributes) and functions (methods) — and is based on four pillars: Encapsulation, Inheritance, Abstraction, and Polymorphism.
  13. Inheritance in OOP allows a new class to reuse properties and methods of an existing class, reducing code duplication and promoting code reusability.
  14. A 4GL (Fourth Generation Language) uses human-like statements close to natural language and is primarily used for database operations — SQL is the most important example.
  15. A scripting language is interpreted and executed one command at a time, used for automating tasks; JavaScript (web), Python (automation), and Bash (Linux scripting) are key examples.

Preparing for competitive exams requires consistent revision. Platforms like JobsMe simplify preparation through:

Stay updated, revise regularly, and attempt quizzes for better accuracy in UPSC, SSC CGL, IBPS PO/Clerk, SBI, RBI Grade B, RRB NTPC, Defence, and State PSC exams.

Free quiz • No signup required

Put this topic into practice with Daily Current Affairs MCQ Quiz (19–20 April 2026) for SSC, Banking & UPSC. It is the quickest way to reinforce what you just learned.

Frequently Asked Questions

What is the difference between Low-Level and High-Level languages?
Low-Level Languages are close to hardware — they deal directly with the computer's physical components. Machine Language (pure binary) and Assembly Language (mnemonics) are low-level. They are fast and efficient but very difficult for humans to write and understand, and they are machine-dependent (written for a specific CPU). High-Level Languages (FORTRAN, C++, Java, Python) use English-like syntax, are much easier to read and write, and are platform-independent. They require a translator (Compiler or Interpreter) to convert to machine language.
Which programming language is used for Artificial Intelligence?
Historically, LISP (List Processing), created by John McCarthy at MIT in 1958, was the primary language for AI. Today, Python (1991, Guido van Rossum) is the dominant AI/ML language due to its simple syntax and powerful libraries (TensorFlow, PyTorch, scikit-learn, NumPy). Other AI-relevant languages include R (statistical analysis), Julia (high-performance computing), and Prolog (logic programming / 5GL).
What is the difference between a Compiler and an Interpreter?
A Compiler translates the entire program from HLL to machine language before execution begins. It reports all errors at once with line numbers and saves the result as an executable file (object code) that can be run repeatedly without recompilation. Examples: GCC for C/C++, javac for Java. An Interpreter translates the program line by line, executing each line immediately. It stops at the first error, does not save object code, and must re-translate every time the program runs. Examples: Python, Ruby, JavaScript. Compilers produce faster-executing programs; interpreters are better for debugging.
Who invented COBOL and what is it used for?
COBOL (Common Business Oriented Language) was invented by Grace Hopper in 1959. Grace Hopper (also known as "Amazing Grace") was a US Navy Rear Admiral and computer scientist who also invented the first compiler. COBOL was designed specifically for business data processing — payroll, inventory, accounting, banking — and remains in use today in legacy banking and government systems. Notably, many Indian bank mainframes still run COBOL code.
What is Object-Oriented Programming (OOP) and what are its four pillars?
OOP is a programming paradigm where software is organised as a collection of objects — each combining data (attributes) and functions (methods). The four pillars are: (1) Encapsulation — bundling data and methods inside an object and hiding internal details; (2) Abstraction — showing only essential features and hiding complexity; (3) Inheritance — a new class can inherit properties from an existing class, enabling code reuse; (4) Polymorphism — the same method name behaves differently for different object types. Key OOP languages: Java, C++, Python, C#, Swift, Kotlin.
What is Java and why is it called platform-independent?
Java was developed by James Gosling at Sun Microsystems in 1995. It is called platform-independent because of its "Write Once, Run Anywhere" principle — Java code is compiled not into machine language but into an intermediate format called bytecode. This bytecode runs on the Java Virtual Machine (JVM), and the JVM is available for Windows, Mac, Linux, and other platforms. The same Java bytecode file runs on any system that has a JVM installed, without modification.
vetri

About the author

vetri

Recent posts

Latest quizzes

New job notifications