x

Choose Country Code

x

Direction

x

Ask a Question

  • Ask a Question
  • Scan a Question
  • Post MCQ
  • Note: File extension must be of jpg, jpeg, png, bmp format and file size must not exceed 5 MB
x

Ask a Question

x

x
x
x
Hire a Tutor

Answers and Solutions

What's Your Question?
Answer

Compiler : It's a computer program(s) that transforms source code written in a programming language into machine language that is the target language which usually has a binary form known as object code. Interpreter : It translates high level instructions into an intermediate form, it translates the code into the intermediate form line by line an caries out specific actions.

Answer

The main difference between an interpreter and a compiler is that compilation requires analysis and the generation of machine code only once, whereas an interpreter may need to analyse and interpret the same program statements each time it meets them e.g. instructions appearing within a loop. For example the following Visual Basic code would be interpreted each time the loop is entered:

For iCountvar = To 20 iSum = iSum + iCountvar Pic.Display iSum Next iCountvar

Answer

Compiler takes the whole program as input and generates the object code.It displays error after whole program is checked. More memory requirement.

Interpreter takes a single line of code as input but does not generate the object code.It displays error  for every instruction interpreted.Less memory requirement.

Post Answer and Earn Credit Points

Get 5 credit points for each correct answer. The best one gets 25 in all.

Post Answer