0% found this document useful (0 votes)
0 views

Python Programming Questions

This document is a question bank for Python programming, organized into five units covering various topics. Each unit includes questions and programming tasks related to Python features, data structures, functions, object-oriented programming, and built-in packages. The questions aim to assess understanding and application of Python concepts through practical coding exercises.

Uploaded by

Pranali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Python Programming Questions

This document is a question bank for Python programming, organized into five units covering various topics. Each unit includes questions and programming tasks related to Python features, data structures, functions, object-oriented programming, and built-in packages. The questions aim to assess understanding and application of Python concepts through practical coding exercises.

Uploaded by

Pranali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Python Programming - Question Bank

Unit I - Introduction to Python and Control Flow Statements

1. Explain the features and applications of Python.

2. Write a Python program to take user input and display the output.

3. Demonstrate the use of different operators in Python with examples.

4. Write a program using if-elif-else to check the grade of a student.

5. Write a Python program to display a multiplication table using for loop.

Unit II - Data Structures in Python

1. Write a program to perform various operations on a list.

2. Demonstrate tuple operations with a sample Python code.

3. Write a Python program to perform set operations like union and intersection.

4. Create and manipulate a dictionary to store student marks.

5. List and explain built-in functions available for list and dictionary.

Unit III - Functions, Modules and Packages in Python

1. Define a function to calculate factorial of a number.

2. Write a Python module to perform basic arithmetic operations.

3. Create a package with submodules and demonstrate its usage.

4. Explain scope of variables with example.

5. Write a lambda function and explain its use.

Unit IV - Object Oriented Programming in Python

1. Create a class for Student with appropriate attributes and methods.

2. Write a Python program using parameterized constructors.

3. Demonstrate method overloading and overriding using Python.

4. Implement single and multiple inheritance in Python with examples.


5. Write a program showing use of data hiding and abstraction.

Unit V - Introduction to Built-in Packages in Python

1. Write a Python program to demonstrate pandas DataFrame operations.

2. Create a simple GUI application using tkinter.

3. Connect a Python program to a MySQL database and retrieve data.

4. List and explain the use of widgets in tkinter.

5. Write a Python program to read a CSV file using pandas.

You might also like