Multiple choice technology web 2.0

Which best describes JavaScript?

  1. a low-level programming language.

  2. a scripting language precompiled in the browser

  3. a compiled scripting language.

  4. an object-oriented scripting language.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

JavaScript is best described as an object-oriented scripting language. It is not precompiled in the browser (it uses JIT compilation or interpretation), nor is it a low-level language or a statically compiled language.

AI explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) a low-level programming language - This option is incorrect because JavaScript is not considered a low-level programming language. Low-level programming languages are closer to machine code and are used to write operating systems or system-level programs.

Option B) a scripting language precompiled in the browser - This option is incorrect because JavaScript is not precompiled in the browser. It is interpreted by the browser at runtime.

Option C) a compiled scripting language - This option is incorrect because JavaScript is not a compiled language. It is an interpreted language, meaning that the code is executed line by line at runtime.

Option D) an object-oriented scripting language - This option is correct because JavaScript is an object-oriented scripting language. It supports object-oriented programming concepts like encapsulation, inheritance, and polymorphism.

The correct answer is D) an object-oriented scripting language. This option is correct because JavaScript is widely used as a scripting language for web development and it follows the principles of object-oriented programming.