Question
Easy

This module converts the python source file into .pyc file:

1
py_source
2
py_run
3
py_interpreter
4
py_compile
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Operating Systems & Software Concepts
Topic: Computer Software
Correct Answer
Option D
Explanation

The correct option is (4): The correct option is (4): The py_compile module is the specific utility in Python's standard library designed to compile a Python source file (which has a .py extension) into a bytecode file (which has a .pyc extension). This pre-compilation step is crucial because the Python Virtual Machine (PVM) does not execute the source code directly; instead, it executes the intermediate bytecode. By converting the source…Read More