QuestionQ4

Python/PyEZ

What is the proper sequence for executing a Python script?

  • A The code is translated to byte code, the byte code is executed in runtime, and then the code is interpreted.
  • B The code is interpreted, the code is translated to byte code, and then the byte code is executed in runtime.C. The code is translated to byte code, the code is interpreted, and then the byte code is executed in runtime.
  • D The byte code is executed in runtime, the code is interpreted, and then the code is translated to byte code.
Explanation

Python source is translated into bytecode before the Python runtime interprets and executes that bytecode on the Python virtual machine. This makes the sequence that begins with bytecode translation and proceeds to interpretation and runtime execution correct.

Community Discussion

No comments yet. Be the first to start the discussion!