Assignment2
Assignment2
Module 4
Bloom’s
Question CO Level
Explain the following with respect to shutil module: CO4 (L3)
i) Copying files and folders
1 ii) Moving and renaming files and folders
2 Write a program to backup a folder into a ZIP file. CO4 (L3)
3 Explain the different logging levels. CO4 (L3)
What is an assertion? Explain how to use assert keyword with an CO4 (L3)
4 example
Write a program to display folder name, list of subfolders, and files in CO4 (L2)
5 the working directory using os.walk().
Explain permanent delete and safe delete with a suitable python CO4 (L3)
6 program.
Write a function DivExp(a,b) using assertion for a>0 and exception for CO4 (L2)
7 b=0.
Module 5
Bloom’s
Question CO Level
1 Explain __init__, __str__, __add__ methods with example. CO5 (L3)
Define classes and objects. Create a class called student with attributes. CO5 (L3)
2 Create two objects and display them.
3 Explain pure functions with examples. CO5 (L3)
4 Demonstrate polymorphism with function to find histogram of letters. CO5 (L3)
Discuss operator overloading. Mention five operators with special CO5 (L2)
5 functions.
6 Explain concept of prototyping vs planning CO5 (L1)