Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Kalpataru Institute of Technology

Department of Electronics and Communication


Python Programming (21EC643)
Even Semester 2024
Question Bank
Faculty: - C Prathibha Semester: - 6th Sec B
Module 4

Questions Marks CO RBT


1. Define Class, Objects and Attributes with an example 10 CO4 L1
2. Write a program to create a class called Rectangle with the help of a 10 CO4 L3
corner point, width and height. Write the following functions and
demonstrate their working:
a. To find and display center of the rectangle
b. To display point as an ordered pair
c. To resize the rectangle
d. To find area and perimeter of a rectangle
3. Justify the statement “Objects are mutable” with suitable examples 05 CO4 L1
4. Demonstrate pure functions and modifiers with example 10 CO4 L2
5.With the help of programming examples explain the difference between 10 CO4 L3
Prototype and Planned Programming Development
6. Differentiate between class variables and instance variables with 10 CO4 L2
suitable examples
7.Write a function to called print time that takes a time object and print it 05 CO4 L2
in the form of hour: minute: second.
8.Briefly explain the concept of Prototyping and planning 10 CO4 L2
9.Explain __intit__( ) and __str__( ) methods with an example. 10 CO4 L2
10.Explain operator overloading and polymorphism with examples 10 CO4 L2
11. Differentiate copy.copy() and copy.deepcopy() with suitable 10 CO4 L2
examples.
12. When do we encounter AttributeError? 05 CO4 L1
13. Differentiate methods and functions. 05 CO4 L2
14.Explain the concept type based dispatch. 10 CO4 L2

Signature of faculty

You might also like