312-50V10 · Question #350
What is the main disadvantage of the scripting languages as opposed to compiled programming languages?
The correct answer is D. Scripting languages are slower because they require an interpreter to run the code.. The main disadvantage of scripting languages compared to compiled languages is slower execution speed, because an interpreter must process the code at runtime rather than beforehand.
Question
What is the main disadvantage of the scripting languages as opposed to compiled programming languages?
Options
- AScripting languages are hard to learn.
- BScripting languages are not object-oriented.
- CScripting languages cannot be used to create graphical user interfaces.
- DScripting languages are slower because they require an interpreter to run the code.
How the community answered
(41 responses)- A2% (1)
- B5% (2)
- D93% (38)
Why each option
The main disadvantage of scripting languages compared to compiled languages is slower execution speed, because an interpreter must process the code at runtime rather than beforehand.
Scripting languages are generally easier to learn than compiled languages - this is considered an advantage, not a disadvantage.
Many scripting languages, including Python, Ruby, and JavaScript, fully support object-oriented programming with classes, inheritance, and polymorphism.
Scripting languages can be used to build graphical user interfaces - for example, Python with Tkinter or PyQt, and JavaScript via Electron or browser-based frameworks.
Scripting languages such as Python, Bash, and JavaScript rely on an interpreter that reads and translates source code into machine instructions line-by-line at runtime, introducing overhead on every execution. Compiled languages such as C or C++ are fully translated into native machine code before execution, so the CPU runs instructions directly without an intermediary step. This runtime interpretation overhead is the primary and well-recognized performance disadvantage of scripting languages relative to compiled ones.
Concept tested: Interpreted vs. compiled language runtime performance trade-off
Topics
Community Discussion
No community discussion yet for this question.