nerdexam
EC-Council

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.

Information Security and Ethical Hacking Fundamentals

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)
  • A
    2% (1)
  • B
    5% (2)
  • D
    93% (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.

AScripting languages are hard to learn.

Scripting languages are generally easier to learn than compiled languages - this is considered an advantage, not a disadvantage.

BScripting languages are not object-oriented.

Many scripting languages, including Python, Ruby, and JavaScript, fully support object-oriented programming with classes, inheritance, and polymorphism.

CScripting languages cannot be used to create graphical user interfaces.

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.

DScripting languages are slower because they require an interpreter to run the code.Correct

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

#scripting languages#compiled languages#interpreter overhead#malware scripting

Community Discussion

No community discussion yet for this question.

Full 312-50V10 Practice