Single Choice Easy

QWhat is the primary difference between a compiler and an interpreter?

ID: #19976 Compiler vs Interpreter 109 views
Question Info
#19976Q ID
EasyDifficulty
Compiler vs InterpreterTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Compilation time
  • B Execution time
  • C Both A and B
  • D Neither A nor B
Correct Answer

Explanation

The primary difference between a compiler and an interpreter lies in when they perform their tasks. A compiler translates the entire source code into machine code during compilation time, while an interpreter translates and executes the source code line by line during execution time.

No Previous Next Question

Share This Question

Challenge a friend or share with your study group.