You are on page 1of 2

Name of Subject: Programming with Python Unit Test: I

Subject Code: 22616 Course: CO6I


Semester: VI
Chapter 4: Python Functions,modules and packages 2Marks
1. Define function in Python
2. Use of any four methods in math module
3. Write the use of lambda function
4. Explain variable scope
5. Explain Matplotlib and Pyplot Module
4 Marks
1. Describe 'Self Parameter with example..
2. Explain Module and its use in Python.
3. Explain building blocks in python
4. Write a program for importing module for addition and subtraction of two numbers.
5. Write a program illustrating use of user defined package in
python
Chapter 5: Object oriented Programming in Python

2M
1.List different Object Oriented features supported by Python.
2. Define class and object in python
3.Write syntax for defining class.
4.Define inheritance and list types of inheritance.
5.Expalin how to create method in a class with example.

4 marks
1. Design a class student with data members : name, roll no., department,mobile no. Create
suitable methods for reading and printing student information.
2. With suitable example explain inheritance in Python.
3. Design a class Employee with data members: name, department and salary. Create
suitable information
4. Explain method overloading in python with example.
5. Explain Multilevel Inheritance with example.
Chapter 6 File I/O handling and Exception Handling
2M
1. Write steps involved in creation of a user defined exception
2.List types of file.
3.Define Exception Handling.
4.Explain use of “Raise” statement with example
4M
1Write a program to show user defined exception in Python.
2. Show how try…except blocks is used for exception handling in Python with examp
3. Design a python program which will throw exception if the value entered by user is
less than zero

You might also like