What is the purpose of a module in Python?
A. To define classes
B. To create graphical interfaces
C. To organize functions, classes, and variables
D. To execute code line by line
Answer: Option C
Solution (By Examveda Team)
In Python, the purpose of a module is to organize functions, classes, and variables.A module in Python is a file containing Python definitions and statements. The primary purpose of modules is to organize related code into reusable units. Modules can contain functions, classes, variables, and even other modules. By structuring code into modules, you can break down large programs into smaller, more manageable pieces, making it easier to understand, maintain, and reuse. Additionally, modules facilitate code sharing and collaboration among developers by providing a standardized way to encapsulate and distribute functionality.
Related Questions on Introduction to Python
What is Python primarily used for?
A. Web browsing
B. Data analysis
C. Video editing
D. Game development
Who developed Python Programming Language?
A. Wick van Rossum
B. Rasmus Lerdorf
C. Guido van Rossum
D. Niene Stom
Which of the following is an advantage of Python?
A. It compiles to machine code
B. It enforces strict typing
C. It has a large standard library
D. It requires extensive memory management
What is the role of the Python interpreter?
A. To convert Python code to assembly language
B. To manage memory allocation
C. To execute Python code line by line
D. To compile Python code into bytecode

Join The Discussion