Computer Science · Modules and Packages
What is the primary role of the init.py file in a Python project structure?
- 1It stores environment variables for the current script.
- 2It treats the directory it is in as a Python package, allowing modules to be imported from it.✓
- 3It is the main execution file for any standalone Python application.
- 4It initializes the Python Virtual Machine (PVM) for execution.
Correct answer
It treats the directory it is in as a Python package, allowing modules to be imported from it.
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Modules and Packages?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Modules and Packages