61.8k views
5 votes
Programs that use an interpreter generally execute faster than compiled programs because they are already entirely translated into machine language when executed.

A. True
B. False

User Shabbyrobe
by
4.5k points

2 Answers

5 votes

Answer:

(B) False

Step-by-step explanation:

Programs that use an interpreter generally don't execute faster that compiled programs because they take in lines of code one after the other. They are not like compilers that take in the entire program all at a time. And because of this, compilers are relatively faster than their interpreter counterparts.

Note that both interpreters and compilers are translators used for converting a program from human-readable form (high-level) to machine readable form.

However, interpreters don't use up much memory compared to compilers. This is because while compilers will produce intermediate machine codes - which need to be stored - interpreters don't produce such.

Examples of programming languages that are interpreters are PHP and Perl.

Examples of languages that are compilers are C and C++.

User Sameer Shemna
by
5.1k points
1 vote

Answer:

The statement is FALSE

User Josmarie
by
3.9k points