When compared to the compiled program, scripts run

  1. Faster

  2. Slower

  3. The execution speed is similar

  4. All of above


Correct Option: B
Explanation:

To solve this question, the user needs to know basic concepts of programming languages and how they are executed.

The answer is:

B. Slower

Scripts are interpreted line by line during runtime, whereas compiled programs are translated into machine language (binary code) before runtime. This means that compiled programs are faster than scripts because they do not require interpretation during runtime. On the other hand, scripts are easier to write, modify, and debug because they do not need to be compiled before execution.

Find more quizzes: