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

Introduction To PythonProgramming Assignment-2 As On 16-8-2023

Uploaded by

Akash Paul
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)
39 views1 page

Introduction To PythonProgramming Assignment-2 As On 16-8-2023

Uploaded by

Akash Paul
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

Wayanamac Education Trust®

DON BOSCO INSTITUTE OF TECHNOLOGY


Kumbalagodu, Mysuru Road, Bengaluru – 560074 www.dbit.co.in
Ph: +91-80-28437028 / 29 / 30 Fax: +91-80-28437031
Department of Information Science & Engineering
ASSIGNMENT-II
Course Name with Code: Introduction Python Programming (BPLCK205B) Academic Year:2022-23
Semester: II ‘A’ ‘B’ ‘C’ ‘D’ ‘E’ & ‘F’ Max Marks: 10
Date of Given:16-8-2023 Date of Submission: 26-8-2023
SI. No. Questions CO RBTL
Explain upper(), lower(), isupper(), and islower() String Methods used in
1 Python. Give example for each. 3 1, 2, 3
Explain isalpha(), isalnum(), isdecimal(), isspace() and istitle() functions used in
2 Python. Give example for each. 3 1, 2, 3

3 Explain join() and split() String Methods. Give Example. 3 1, 2, 3


Write a program in Python that repeatedly asks users for their age and a password
4 3 1, 2, 3
until they provide valid input.
5 Briefly explain the os.path module. Give Example. 3 1, 2, 3
Explain the concept of file handling. Also explain reading and writing process
6 3 1, 2, 3
with suitable example.
7 Briefly explain saving variables with shelve module. 3 1, 2, 3
Explain the following file operations in Python with suitable example.
i) Copying files and folders
8 4 1, 2, 3
ii) Moving files and folders
iii) Permanently deleting files and folders
List out the benefits of compressing file? Also explain reading of a Zip file with
9 4 1, 2, 3
an example.
10 Briefly explain assertions and raising exception. 4 1, 2, 3
11 List out the benefits of using logging module with an example. 4 1, 2, 3
12 Briefly explain logging levels and give example. 4 1, 2, 3
13 Briefly explain how we can disable the logging. Give example. 4 1, 2, 3
14 Briefly explain about IDE’s Debugger. 4 1, 2, 3
15 Define class, object, attributes, object diagram. 5 1, 2, 3
16 Explain the concept of copying using copy module with an example. 5 1, 2, 3
17 Briefly explain about pure function and give example. 5 1, 2, 3
18 Explain _ _init_ _() and _ _str_ _() method with an examples. 5 1, 2, 3
19 Briefly explain the Printing of objects with an example. 5 1, 2, 3
20 Briefly explain about Polymorphism. 5 1, 2, 3

Course Coordinator Name HoD


with Signature

You might also like