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

PWP Open Book Test 2

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)
20 views

PWP Open Book Test 2

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/ 1

OPEN BOOK TEST

Course Name & Code: Programming with Python -22616


Date of Conduction: 27/03/2024
Total marks: 50

Q1. Answer the following questions. (2 Marks each)


1. Define class and object in python.
2. What is local and global variables.
3. What is module?How to define module.
4. List file operations in Python.
5. Write syntax of defining class in Python with example.
6. Enlist the type of Inheritance in python.
7. Explain method overloading in python.

Q2.Answer the following questions. (4 Marks each)


1. Write a program for importing module for addition and substraction
of two numbers-
2. Write a program to open a file in write mode and append some
contents at the end of file.
3. Explain how Try-except block used in exception handling in python
with example.
4. Illustrate the concept of method overriding by defining a class
‘Employee’ as base class and two derived classes named
‘Department ‘ and ‘Sales’. Define a method named ‘message’ for
all the classes.
5. Design a class student with data members; Name, roll number
address. Create suitable method for reading and printing students
details.
6. Develop a python program to illustrate how Pandas uses the dataframe
for manipulating data.
7. Explain how to use user defined function in python with example.
8. Explain package Numpy with example.
9. Write a program illustrating use of user defined package in python.

You might also like