Challenger App

No.1 PSC Learning App

1M+ Downloads
The translator program that translates each line of the source program as it runs is called :

ACompiler

BInterpreter

CEditor

DLinker

Answer:

B. Interpreter

Read Explanation:

An Interpreter is a translator program that converts and executes source code line by line at runtime. Unlike a compiler that translates the entire program at once before execution, an interpreter reads each line of the source code, translates it into machine code, and executes it immediately before moving to the next line.

Key Characteristics of an Interpreter:

  1. Line-by-line translation: Translates and executes one statement at a time

  2. Runtime execution: The translation happens during program execution, not beforehand

  3. Immediate error detection: Stops execution when it encounters an error on a specific line

  4. No object code generation: Does not create a separate executable file

Comparison with other options:

  • Compiler: Translates the entire program at once and creates an executable file before running

  • Editor: A software tool used for writing and editing code, not for translation

  • Linker: Combines multiple object files into a single executable program

Examples of Interpreted Languages:

  • Python

  • JavaScript

  • Ruby

  • PHP

Therefore, the correct answer is Interpreter as it specifically translates and runs the source program line by line during execution.


Related Questions:

Computers use the _____ number system to store data and perform calculations.
What is the meaning of 'Wiki ' in the word 'Wikipedia' ?
താഴെ പറയുന്നവയിൽ ഏതാണ് https://www.mypage.com എന്നതിലേക്ക് ക്ലിക്ക് ചെയ്യാവുന്ന ലിങ്ക് ശരിയായി സൃഷ്ടിക്കുന്നത് ?

Which of the following statement is/are NOT correct about the access modifier in Visual Basic .NET?


(i) Protected access modifier applies to class members only.

(ii) Public access modifier defines a type that is accessible only from within its own class or from a derived class.

Which section of IT Act deals with Cyber Terrorism ?