Navshala by Navrohi
📖 Notes · Computer हिंदीEnglish

Language Translators and Programming Concepts

⏱️ 9 min📜 18 PYQ📝 132 MCQ

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.

TranslatorWhat it convertsHow
AssemblerAssembly (mnemonics) → machine codeOne-to-one
CompilerHigh-level → machine languageThe whole program at once
InterpreterHigh-level → machine languageOne statement at a time, runs it at once
Remember: Assembler = Assembly; a compiler = translating a whole book at once; an interpreter = a live interpreter at a speech, sentence by sentence.
🔒 Further in this note
  • 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)

📜 Allahabad High Court RO/ARO · 7 January 2022 · RO

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

All 18 PYQs of this chapter are on the mind map and with the PYQ Pass.

Read next

← Programming LanguagesPrevious chapter Database Management System (DBMS) →Next chapter ComputerAll chapters
⭐ Full GS Pass: all 14 subjects + every PYQ · ₹399 for 6 months · ₹599 a yearAll 14 bought one by one cost ₹1,216. New subjects come free.See plans →