Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
15 views

Python Programming - Question Bank

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Python Programming - Question Bank

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

BHAGWAN MAHAVIR UNIVERSITY

BHAGWAN MAHAVIR COLLEGE OF MANAGEMENT

Python Programming (Question Bank)

Short Questions
Q. 1 What is Python?
Q. 2 What are the different data types in Python?
Q. 3 What are control statements in Python?
Q. 4 What are functions in Python?
Q. 5 What are modules in Python?
Q. 6 What are the different types of files in Python?
Q. 7 How to read and write files in Python?

Long Questions
Q. 1 How does Python manage memory, and what are some strategies for efficient
memory utilization?
Q. 2 Can you explain the role of the garbage collector in Python and how it
contributes to memory management?
Q. 3 What are the built-in data types in Python, and how are they utilized within
the language?
Q. 4 How are values and variables defined and utilized in Python programming?
Q. 5 What steps are involved in evaluating expressions and performing operations
in Python?
Q. 6 Could you elaborate on the various operators available in Python and their
respective functionalities?
Q. 7 What are the mechanisms for conditional execution in Python, and how are
they implemented?
Q. 8 What distinguishes a function from a method in Python, and when would you
use each?
Q. 9 How do you define and call functions in Python, and what are some best
practices?
Q. 10 Can you explain Python's concept of "pass by object reference" and how it
affects function arguments?
Q.11 What is the difference between local and global variables in Python, and how
are they scoped?
Q. 12 How does Python handle exceptions, and what are the primary techniques for
exception handling?
Q. 13 What are some common types of exceptions in Python, and when might you
encounter them?
Q. 14 What are the different types of files that Python supports, and how are they
utilized in programming tasks?

1
Q. 15 What are the typical steps involved in opening and closing a file in Python,
and why is proper file handling important?

You might also like