What is the difference between a scripting language and a compiled language?

 

Last Updated on February 21, 2021 by InfraExam

What is the difference between a scripting language and a compiled language?

  • Scripting languages need to be converted into executable code using a compiler, while compiled languages are interpreted as they are executed.
  • Compiled languages are executed by the operating system, while scripting languages are executed by the CPU.
  • Scripting languages are interpreted and executed line by line when a script is run, while compiled languages need to be converted into executable code.
  • Compiled languages are executed by a command interpreter, while scripting languages are executed by the CPU.
    Explanation:

    A scripting language is different than a compiled language because each line is interpreted and then executed when the script is run. Compiled languages need to be converted into executable code using a compiler. Another difference between the two types of languages is that compiled languages are executed by the CPU while scripting languages are executed by a command interpreter or by the operating system.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments