📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    What is the major difference between a compiler and an

    interpreter?
    A Compiler translates line-by-line Correct Answer Incorrect Answer
    B Compiler translates entire program at once Correct Answer Incorrect Answer
    C Interpreter produces executable file Correct Answer Incorrect Answer
    D Both behave the same Correct Answer Incorrect Answer
    E Interpreter compiles code Correct Answer Incorrect Answer

    Solution

    A compiler translates the whole source code into machine code , whereas an interpreter executes code line-by-line.

    Practice Next
    ask-question