FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is the different between compilers and interpreters?
A
Compilers are slower than interpreters
B
Compilers mistakes are easier to changes than interpreters
C
Compilers covert code all at once and interpreters convert one line at a time.
D
None of the above
Explanation: 

Detailed explanation-1: -A Compiler takes a program as a whole. An Interpreter takes single lines of a code. The Compilers generate intermediate machine codes. The Interpreters never generate any intermediate machine codes.

Detailed explanation-2: -A compiled language is converted into machine code so that the processor can execute it. An interpreted language is a language in which the implementations execute instructions directly without earlier compiling a program into machine language. The compiled programs run faster than interpreted programs.

Detailed explanation-3: -A compiler translates complete high-level programming code into machine code at once. An interpreter translates one statement of programming code at a time into machine code. As the source code is already converted into machine code, the code execution time becomes short.

Detailed explanation-4: -Whereas compilers and interpreters generate many machine code instructions for each high-level instruction, assemblers create one machine code instruction for each assembly instruction.

There is 1 question to complete.