0% found this document useful (0 votes)
0 views1 page

Assignment2

The document outlines assignments for Module 4 and Module 5, focusing on Python programming concepts such as the shutil module, logging levels, assertions, and object-oriented programming. It includes tasks like writing programs for file operations, explaining methods, and demonstrating concepts like polymorphism and operator overloading. Each task is associated with specific learning outcomes and Bloom's taxonomy levels.

Uploaded by

pavithra
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 views1 page

Assignment2

The document outlines assignments for Module 4 and Module 5, focusing on Python programming concepts such as the shutil module, logging levels, assertions, and object-oriented programming. It includes tasks like writing programs for file operations, explaining methods, and demonstrating concepts like polymorphism and operator overloading. Each task is associated with specific learning outcomes and Bloom's taxonomy levels.

Uploaded by

pavithra
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

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)

You might also like