Computer Languages and Translators Notes for SSC Exams
Rahul Kumar
SSC Exam Expert & Content Editor
In this note
- 1.Levels of Computer Languages
- 2.Language Translators
- 3.Popular Programming Languages and Creators
- 4.Programming Terms
- 5.History of Programming Languages
- 6.Generations of Programming Languages
- 7.Programming Paradigms
- 8.Compiler, Interpreter and Assembler Compared
- 9.Program Development Steps
- 10.Types of Errors
- 11.Important Questions Explained
- 12.Quick Tips to Remember
- 13.Common Mistakes to Avoid
- 14.Quick Revision Points
- 15.Practice Questions With Answers
- 16.More Practice Questions With Answers
- 17.How to Practise This Chapter
- 18.Related Notes and Practice Papers
- 19.Explore More SSC Subjects
- 20.Frequently Asked Questions
PDF Notes: Computer Languages and Translators Notes for SSC Exams
Premium PDF · one-time payment of ₹5 · instant access
Computer languages and translators are asked regularly in SSC Computer Knowledge. The questions are about the levels of languages, the work of a compiler, an interpreter and an assembler, and the creators of popular languages. These computer languages and translators notes for SSC explain every point with tables and practice questions. Read it along with the Computer Software Notes and Generations of Computers Notes notes.
Levels of Computer Languages
| Level | Language | Features |
|---|---|---|
| Low level | Machine language | Only 0s and 1s; the only language the computer understands directly; very fast but hard to write |
| Low level | Assembly language | Uses short codes called mnemonics (ADD, SUB, MOV); needs an assembler |
| High level | C, C++, Java, Python, COBOL, FORTRAN, BASIC | Close to English; easy to learn; needs a compiler or interpreter and is machine independent |
Language Translators
| Translator | What it does |
|---|---|
| Assembler | Converts assembly language into machine language |
| Compiler | Converts the whole high-level program into machine code at once; reports all errors together; faster execution |
| Interpreter | Converts and runs the program line by line; stops at the first error; slower execution |
The program written by the programmer is called the source code, and the converted program is called the object code.
Popular Programming Languages and Creators
| Language | Fact |
|---|---|
| FORTRAN | First high-level language (1957), used for science and engineering |
| COBOL | Business and banking applications; Grace Hopper contributed to it |
| BASIC | Beginner language |
| C | Developed by Dennis Ritchie at Bell Labs (1972) |
| C++ | Developed by Bjarne Stroustrup |
| Java | Developed by James Gosling at Sun Microsystems (1995); "write once, run anywhere" |
| Python | Developed by Guido van Rossum; popular for AI and data science |
| HTML | Markup language for web pages; not a programming language |
| SQL | Language for databases |
| PASCAL | Named after Blaise Pascal; developed by Niklaus Wirth |
Programming Terms
- Algorithm: a step-by-step method to solve a problem.
- Flowchart: a diagram that shows the steps of a program. An oval is the start or end, a rectangle is a process, a diamond is a decision and a parallelogram is input or output.
- Bug: an error in the program. Debugging is finding and removing the bugs.
- Syntax error is a mistake in the rules of the language. Logical error is a mistake in the logic, giving a wrong result.
- Source code is the program written in a language; object code is its machine form.
History of Programming Languages
| Language | Year | Fact |
|---|---|---|
| Plankalkul | 1940s | First high-level language design by Konrad Zuse |
| FORTRAN | 1957 | FORmula TRANslation by John Backus at IBM; for science and engineering |
| LISP | 1958 | John McCarthy; used in artificial intelligence |
| COBOL | 1959 | COmmon Business Oriented Language; business and banking |
| ALGOL | 1958-60 | Algorithmic Language; ancestor of many languages |
| BASIC | 1964 | Beginner's All-purpose Symbolic Instruction Code by Kemeny and Kurtz |
| Pascal | 1970 | Niklaus Wirth; used for teaching |
| C | 1972 | Dennis Ritchie, Bell Labs; used to write Unix |
| SQL | 1970s | Database language |
| C++ | 1979-85 | Bjarne Stroustrup; C with classes |
| Python | 1991 | Guido van Rossum; simple and popular |
| Java | 1995 | James Gosling, Sun Microsystems |
| JavaScript | 1995 | Brendan Eich; web page behaviour |
| PHP | 1995 | Rasmus Lerdorf; server-side web language |
| C# | 2000 | Microsoft |
| Swift | 2014 | Apple |
| Kotlin | 2011 | JetBrains; official Android language |
Generations of Programming Languages
| Generation | Language | Example |
|---|---|---|
| First (1GL) | Machine language | 0s and 1s |
| Second (2GL) | Assembly language | ADD, MOV |
| Third (3GL) | High-level, procedural | C, FORTRAN, COBOL, Pascal, BASIC |
| Fourth (4GL) | Very high-level, problem-oriented | SQL, report generators |
| Fifth (5GL) | Constraint and AI based | PROLOG, Mercury |
Programming Paradigms
- Procedural programming uses a sequence of steps and functions (C, Pascal).
- Object-oriented programming (OOP) uses objects and classes. Main ideas: class, object, encapsulation, inheritance, polymorphism and abstraction (C++, Java, Python).
- Functional programming uses mathematical functions (LISP, Haskell).
- Scripting languages run through an interpreter, mostly for the web (JavaScript, PHP, Python).
- Markup languages describe the structure of a document (HTML, XML) and are not programming languages.
- Query languages ask questions of a database (SQL).
Compiler, Interpreter and Assembler Compared
| Point | Compiler | Interpreter | Assembler |
|---|---|---|---|
| Input | High-level language | High-level language | Assembly language |
| Output | Machine code (object file) | Executes line by line (no object file) | Machine code |
| Speed | Faster execution | Slower execution | Fast |
| Errors | Shows all errors after scanning the whole program | Stops at the first error | Shows errors of the assembly code |
| Memory | Needs more memory | Needs less memory | Little |
| Examples | C, C++, Java (compiled to bytecode) | Python, JavaScript, BASIC | NASM, MASM |
A linker joins the object files and library files to make an executable file, and a loader loads the executable file into the memory to run it. The Java compiler produces bytecode, which the Java Virtual Machine (JVM) runs on any computer; this is the reason for "write once, run anywhere".
Program Development Steps
- Problem definition: understand what has to be solved.
- Algorithm design and flowchart: plan the steps.
- Coding: write the program in a language.
- Compiling and debugging: remove errors.
- Testing: check the output for correct and wrong inputs.
- Documentation and maintenance: write guides and update the program.
| Flowchart symbol | Meaning |
|---|---|
| Oval | Start or end |
| Rectangle | Process or calculation |
| Parallelogram | Input or output |
| Diamond | Decision (yes or no) |
| Arrow | Flow of control |
| Circle | Connector |
Types of Errors
| Error | Meaning |
|---|---|
| Syntax error | The rules of the language are broken; found by the compiler |
| Logical error | The program runs but gives a wrong result because of wrong logic |
| Runtime error | The error happens while the program is running, such as dividing by zero |
| Semantic error | The statement is correct but its meaning is wrong |
Important Questions Explained
Question 1: Which language does a computer understand directly?
Answer: Machine language.
Question 2: Which translator converts assembly language into machine language?
Answer: An assembler.
Question 3: Which translator converts the whole program at once?
Answer: A compiler.
Question 4: Who developed the C language?
Answer: Dennis Ritchie, at Bell Labs.
Question 5: Who developed Java?
Answer: James Gosling, at Sun Microsystems.
Question 6: What is a flowchart symbol with a diamond shape used for?
Answer: A decision (yes or no).
Quick Tips to Remember
- Remember "compiler = whole program, interpreter = line by line".
- Link C with Dennis Ritchie, C++ with Stroustrup, Java with Gosling and Python with Guido van Rossum.
- Learn the three levels: machine, assembly and high-level.
- Remember FORTRAN as the first high-level language.
- Remember that HTML is a markup language and not a programming language.
Common Mistakes to Avoid
- Mixing the compiler and the interpreter.
- Writing assembly language as a high-level language.
- Saying that the computer understands the English-like languages directly.
- Mixing the creators of C and C++.
- Calling HTML a programming language.
Quick Revision Points
- Machine language = 0s and 1s; assembly = mnemonics; high level = English-like.
- Assembler: assembly to machine. Compiler: whole program. Interpreter: line by line.
- C = Dennis Ritchie; C++ = Bjarne Stroustrup; Java = James Gosling.
- FORTRAN = first high-level language.
- Debugging means removing errors.
Practice Questions With Answers
- Which language is directly understood by a computer?
Answer: Machine language (0s and 1s). - A program that translates the high-level language line by line is?
Answer: Interpreter (Stops at the first error). - A program that translates the entire program at once is?
Answer: Compiler (Reports all errors). - Which translator is used for assembly language?
Answer: Assembler (Assembly to machine code). - Who developed C?
Answer: Dennis Ritchie (Bell Labs). - Who developed Java?
Answer: James Gosling (Sun Microsystems). - Which was the first high-level language?
Answer: FORTRAN (1957). - A step-by-step procedure to solve a problem is called?
Answer: Algorithm (Before programming). - What is finding and fixing errors called?
Answer: Debugging (Bugs). - Which language is used for databases?
Answer: SQL (Structured Query Language).
More Practice Questions With Answers
- Who developed FORTRAN at IBM?
Answer: John Backus (1957). - Which language is used for AI and was developed by John McCarthy?
Answer: LISP (1958). - Who developed BASIC?
Answer: Kemeny and Kurtz (1964). - Which language was developed by Bjarne Stroustrup?
Answer: C++ (OOP). - Which language was developed by Guido van Rossum?
Answer: Python (1991). - Which software runs Java bytecode?
Answer: JVM (Java Virtual Machine). - Which error happens while a program is running?
Answer: Runtime error (Divide by zero). - What is a flowchart parallelogram used for?
Answer: Input or output (Symbol). - Which language is 4GL?
Answer: SQL (Very high-level). - What does a linker do?
Answer: Joins object files into an executable file (Program building). - Which paradigm uses class and object?
Answer: Object-oriented programming (Java, C++). - Who developed JavaScript?
Answer: Brendan Eich (1995).
How to Practise This Chapter
- Read the tables once and learn the key facts by heart.
- Revise the quick revision points the next day.
- Attempt the practice questions above without looking at the answers.
- Solve a full SSC CGL Tier 1 mini mock to test your general awareness.
- Check the previous year papers to see how SSC asks computer questions.
Related Notes and Practice Papers
- Computer Software Notes
- Number System and Binary Conversion Notes
- Generations of Computers Notes
- Computer Knowledge Notes for SSC
- SSC CGL Tier 1 Mini Mock
Explore More SSC Subjects
SSC exams test many subjects, so connect this topic with the related subjects below:
- General Science Notes
- General Awareness Notes
- Quantitative Aptitude Notes
- Reasoning Notes
- Electrical Engineering (SSC JE) Notes
- All SSC subjects and notes
Frequently Asked Questions
What are the types of computer languages?
They are machine language, assembly language and high-level languages.
What is a compiler?
A compiler translates the whole high-level program into machine code at once.
What is an interpreter?
An interpreter translates and executes the program line by line.
What is an assembler?
An assembler converts assembly language into machine language.
Which language does the computer understand directly?
The computer understands machine language directly.
Which was the first high-level language?
FORTRAN, developed in 1957, is considered the first high-level language.
Who developed the C language?
Dennis Ritchie developed C at Bell Labs in 1972.
What is the difference between a syntax error and a logical error?
A syntax error breaks the rules of the language, while a logical error gives a wrong result because of wrong logic.
How many questions come from computer languages in SSC exams?
One question usually comes from languages and translators.
What is object-oriented programming?
Object-oriented programming is a way of writing programs using classes and objects, with ideas such as encapsulation, inheritance and polymorphism.
What is bytecode?
Bytecode is the intermediate code made by the Java compiler, which is run by the Java Virtual Machine on any computer.
What is the difference between a syntax error and a runtime error?
A syntax error is a mistake in the rules of the language found before running, while a runtime error happens while the program is running.
Previous chapter
Number System and Binary Conversion Notes for SSC Exams
Next chapter
Computer Software Notes for SSC Exams: System and Application Software
Rahul Kumar
SSC Exam Expert & Content Editor
Rahul is a senior SSC exam strategist with 8+ years of experience helping aspirants crack CGL, CHSL and MTS exams. He writes in-depth notification breakdowns, exam pattern guides and preparation strategies.