Monday , September 16 2024

What is true about compilation? (Select two answers)

Questions BankCategory: Python Essentials 1What is true about compilation? (Select two answers)
What is true about compilation? (Select two answers)

  • It tends to be faster than interpretation
  • It tends to be slower than interpretation
  • Both you and the end user must have the compiler to run your code
  • The code is converted directly into machine code executable by the processor

Explanation: The compiler translates (compiles) the source program (a set of high-level language instructions) into machine code (a lower-level representation of the source program). The sequence of 0s and 1s can be then executed by the processor. The execution of the compiled code is usually faster than interpretation.

More Questions: Python Essentials 1 – Module 1 Test