Language Translators and Programming Concepts
1. Language translators: the computer only understands 0 and 1
The CPU only understands machine language (0/1), but we write programs in a high-level language (C, Python) or in assembly (LOAD, ADD). The system programs that turn these into machine language = language translators. Like an interpreter between a Hindi speaker and a Japanese listener.
| Translator | What it converts | How |
|---|---|---|
| Assembler | Assembly (mnemonics) → machine code | One-to-one |
| Compiler | High-level → machine language | The whole program at once |
| Interpreter | High-level → machine language | One statement at a time, runs it at once |
- 2. Compiler vs interpreter
- 3. From source code to .exe: linker and loader
- 4. Algorithms and pseudocode
- 5. Data structures: ways of keeping data
- 6. Flowchart: a picture of an algorithm
- 7. Bugs, errors and debugging
- 8. Coding basics: variables, keywords, loops
- ⚠️ Where students go wrong most
The full note, 6 try-it tools and all 132 MCQs of this chapter come with the full subject: ₹99
or ⭐ all 14 subjects + every PYQ for ₹599 a year (Full GS Pass)
How the exam asks it
- High-level language → machine language? Compiler · Programming language → machine language? Compiler · Mnemonic code → machine code? Assembler (Allahabad HC)
- Converts and runs one statement at a time? Interpreter · Compilation helps produce? An executable program (Allahabad HC)
- Ready to run, needing no conversion? Executable · Resolving reference instructions between files? Linker (Allahabad HC)
- A step-by-step description to reach a solution? Algorithm · An ordered procedure? Algorithm · Rules and words that express an algorithm's steps? Programming language (Allahabad HC)
- A graphical representation of the steps of a solution? Program flowchart (Allahabad HC)
- An error in a program? Bug · A compile-time error? Syntax error · The process of writing instructions? Coding · Words a language keeps for itself? Reserved words (Allahabad HC)
Check yourself
1. The translator that converts and runs one statement at a time:
Answer: C. Interpreter · An interpreter goes line by line and stops at the first mistake; a compiler converts the whole program at once.
2. Which converts mnemonic code (LOAD, ADD) into machine code?
Answer: B. Assembler · Assembly-language mnemonics → machine code = assembler.
Asked in the exam (PYQ)
The process of writing out computer instructions is known as _______
Answer: A. coding · Writing instructions in a programming language is called coding. Compiling and assembling translate that code into machine language; documenting is writing explanations about the program.
More PYQs from this chapter
- A ________ contains specific rules and words that express the logical steps of an algorithm.Allahabad High Court RO/ARO · 5 January 2022 · RO
- A(n) ______ program is one that is ready to run and does not need to be altered in any way.Allahabad High Court RO/ARO · 19 December 2021 · Shift 1
- __________ helps in converting programming language to machine language.Allahabad High Court RO/ARO · 19 December 2021 · Shift 2
- A set of step-by-step procedures for accomplishing task is known as a(n) :Allahabad High Court RO/ARO · 19 December 2021 · Shift 2
- The main purpose of ______ is to resolve references among files.Allahabad High Court RO/ARO · 16 December 2021 · Shift 1
- The __________ program is used to convert mnemonic code to machine code.Allahabad High Court RO/ARO · 15 December 2021 · ARO
All 18 PYQs of this chapter are on the mind map and with the PYQ Pass.
