Indicate which, of the following, in not true about an interpreter A. Interpreter generates an object program from the source program B. Interpreter is a kind of translator C. Interpreter analyses each source statement every time it is to be executed D. All of the above E. None of the above

[amp_mcq option1=”Interpreter generates an object program from the source program” option2=”Interpreter is a kind of translator” option3=”Interpreter analyses each source statement every time it is to be executed” option4=”All of the above E. None of the above” correct=”option3″]

The correct answer is: C. Interpreter analyses each source statement every time it is to be executed.

An interpreter is a program that reads a source program and executes it directly. It does not generate an object program. Instead, it translates each source statement into machine code and executes it immediately. This is in contrast to a compiler, which translates the entire source program into machine code before executing it.

Interpreters are often used for scripting languages, which are designed to be easy to use and quick to develop. They are also used for interactive programs, where the user can enter commands and see the results immediately.

Here is a brief explanation of each option:

  • A. Interpreter generates an object program from the source program. This is not true. An interpreter does not generate an object program. Instead, it translates each source statement into machine code and executes it immediately.
  • B. Interpreter is a kind of translator. This is true. An interpreter is a type of translator. It translates source code into machine code, but it does not generate an object program.
  • C. Interpreter analyses each source statement every time it is to be executed. This is not true. An interpreter only analyses each source statement once, when it is first encountered. It does not analyse the statement again each time it is executed.
  • D. All of the above. This is not true. Only option C is not true.
  • E. None of the above. This is not true. Option C is not true.
Exit mobile version