Which of the following programming languages requires a compiler?

Group of answer choices

Microsoft PowerShell

C

Assembly

Linux bash

1 answer

Among the programming languages listed, both C and Assembly require a compiler (or an assembler in the case of Assembly) to translate the code into machine language that the computer can execute.

  • C: A compiled language that requires a compiler (like GCC) to convert C code into executable machine code.
  • Assembly: Requires an assembler to convert assembly language into machine code, though some forms can be interpreted.

On the other hand:

  • Microsoft PowerShell: This is a scripting language that is typically executed by an interpreter, rather than requiring compilation.
  • Linux bash: Also an interpreted scripting language (Bash scripts are executed by the Bash interpreter).

So, C and Assembly are the correct answers.