COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Compilers are slower than interpreters
|
|
Compilers mistakes are easier to changes than interpreters
|
|
Compilers covert code all at once and interpreters convert one line at a time.
|
|
None of the above
|
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.