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

Adobe Scan 07 Aug 2023

The document contains a series of questions and tasks related to programming concepts, specifically focusing on file handling, modules, assertions, exceptions, classes, and inheritance in Python. It includes instructions for developing programs that demonstrate these concepts, such as creating a function for division, defining a rectangle class, and using the copy module. Additionally, it discusses the benefits of logging and compressing files, along with examples and explanations of various programming operations.

Uploaded by

h13584962
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)
18 views1 page

Adobe Scan 07 Aug 2023

The document contains a series of questions and tasks related to programming concepts, specifically focusing on file handling, modules, assertions, exceptions, classes, and inheritance in Python. It includes instructions for developing programs that demonstrate these concepts, such as creating a function for division, defining a rectangle class, and using the copy module. Additionally, it discusses the benefits of logging and compressing files, along with examples and explanations of various programming operations.

Uploaded by

h13584962
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

BPLCKI05B/BPLCK

8 12
and
writing
OR explain
rcading
Aso
handling

of lilc
the
concept
path.
6 L2
plain example.
relative
tile
a. suitable
Q.6 wth absolute
and
process

path.
Also
discuss
6 L3 C
file
b. Inplain theconceptof shelve
module.

variables w
ith
sav ing
c. Bricly explain 6 L2 G
Module 4 example:
w ith suitablce
operations
in Python
file
vplain the follow
ing
Q.7 . folders
files and
Copying
and folders
Moving files folders.
files and
ii) Permanently deleting 8 L2 CO:
tile
of a zip
file? Also explain reading
b. List out the benefits of compressing
with an example.
6 L3 CO
and shutil.copytreet
between shutil.copy
C.
List out the ditferences
method.

OR 6 L2 ¬O=
Q.8 a. Briefly explain assertions and raising a exception.
b. List out the benefits of using logging module with an example. 6 L2 CO

a program with a function named DivExp which


takes two 3 L3 CO
C.Develop
parameters a. b and returns a value C (C = a/b). Write suitable assertion for
a>0 in function DivExp and raise an exception for when b= 0. Develop a
suitable program which reads two values from the console and calls a
function DivExp.

Module-5
Q.9 a. Define a class and object, construct the class called
it with height rectangle and initialize
100, width 200. starting point as (x 0.
=
8 L2 CO-
=
y 0). Write a
=

program to display the center point co-ordinates of a


rectangle.
b. Explain the concept of copying using
copy module w ith an
example. 6 L2 CO
C.
Explain the concept of inheritance with
an
example. 6 L2 CO
Q.10 a. Define a function OR
and returns which takes two
new objects
Define a suitablecomplex number with a representing complex
class addition of two numbers 8 L2 C0
Develop aprogram
the addition of to readComplex to
represent the
eomplex numbers.
N(N>
N
complex numbers 2) complex numberscomplex
and to
number.
b. Explain compute
init and
str
c.
Briefly explain the method with examples.
printing of objects with 6 L2 CO
an
examples. 6 L2 (
*

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy