Which of the following is primarily classified as a high-level scripting…
2023
Which of the following is primarily classified as a high-level scripting language rather than a low-level or system programming language?
- A.
Assembly
- B.
C
- C.
Perl
- D.
C++
- E.
Machine Language
Attempted by 8 students.
Show answer & explanation
Correct answer: C
Concept
Programming languages sit on a spectrum by abstraction level. Low-level languages (machine code and assembly) map almost directly to a CPU's instruction set and offer little abstraction from hardware. High-level languages abstract away the hardware; among them, a scripting language is a high-level, typically interpreted language designed for quick automation, text processing, and 'gluing' components together, usually without a separate compile step.
Applying it here
Test each candidate against two questions: is it high-level (abstracted from hardware), and is it scripting (interpreted, automation/text-oriented, no mandatory compile)?
Machine code and assembly translate directly to hardware instructions, so they are low-level, not scripting.
C and C++ are high-level compiled languages built for system and general-purpose programming, producing native executables; they are not scripting languages.
Perl is a high-level, interpreted language created for text manipulation, system administration, and rapid automation - the defining profile of a scripting language.
Cross-check
Perl is the only candidate that is both high-level and interpreted/automation-oriented, so it is the high-level scripting language among the choices. The others are either low-level (assembly, machine language) or compiled system/general-purpose languages (C, C++).