1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 9
  4. The main difference between a compiler and an interpreter…

Added 15 Nov 2026

The main difference between a compiler and an interpreter is that a compiler:

  1. Translates the whole program at once Correct answer
  2. Translates one statement at a time
  3. Does not translate the program at all
  4. Only works with machine language

Correct answer

A. Translates the whole program at once

12 views

MCQSEXAM

Explanation

A compiler translates the whole program into machine code in one go and produces an executable file before the program runs. An interpreter translates and executes one statement at a time. This is why errors in a compiled program usually appear all at once, while an interpreted program stops at the first error it meets.

Reference

Asked in: Matric,FBISE

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Science FBISE Class 9 MCQs

Practise all Computer Science FBISE Class 9 MCQs

Similar MCQs