Which of the following is not a feature of compiler?a) Scan the entire program first and translate into machine code b) To remove syntax errors c) Slow for debugging d) Execution time is more
Question
Which of the following is not a feature of compiler?a) Scan the entire program first and translate into machine code b) To remove syntax errors c) Slow for debugging d) Execution time is more
Solution
The option that is not a feature of a compiler is d) Execution time is more.
Here's why:
a) Scan the entire program first and translate into machine code - This is a feature of a compiler. It reads the entire program and translates it into machine code at once.
b) To remove syntax errors - This is also a feature of a compiler. It checks the syntax of the code and reports errors.
c) Slow for debugging - This is a characteristic of a compiler. Since the entire code is compiled at once, debugging can be slower compared to interpreters which execute line by line.
d) Execution time is more - This is not a feature of a compiler. In fact, compiled programs often run faster than interpreted ones because they are directly translated into machine code.
Similar Questions
Which of the following is not a task of the compiler?Finding syntax errors in the source codeGenerating machine codeOptimizing codeFinding Logical Errors
Which of the following describes a compiler
Compilers generally produce faster-running programs compared to interpreters.
Which of the following translates the program into machine language line by line?(A)Compiler (B)Interpreter (C)Assembler(D)Deassembler (E)All of the above (F)None of the above
Discuss syntax analysis in compiler with example.
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.