Back to the 2019 paper

Module III: Basics of Web Programming

20192m

JavaScript is called as lightweight programming language because

(i) JS is available free of cost
(ii) JS is client-side scripting
(iii) we can add programming functionality inside JS
(iv) JS can provide programming functionality inside but up to certain extent

Worked SolutionAI Assisted

Correct Answer: (iv) JS can provide programming functionality inside but up to certain extent

Explanation:

  • JavaScript is described as a "lightweight" language because:
    1. It has a small memory footprint and does not require complex local compilation or binaries before execution.
    2. It has restricted system-level access in the browser sandbox (cannot directly manage OS threads, pointers, or arbitrary disk files).
    3. It executes directly via the browser's lightweight JIT-interpreter engine.

Similar questions