PB 12 CS
PB 12 CS
Rate Integer
(or)
36 b. Explain the various buttons in Matplotlib Window
37 a. Explain the different types of functions in Python with example.
(or)
37 b. Identify the output of the following program after correcting the errors, if any, found in the
program.
class s:
sum=0
def __init__(self, __n):
self.n=__n
print("Object ", self.n)
def display(self, __value1, value2):
self.__value1=__value1
sum=__value1+value2
print('Result', sum)
v1=int(input('Enter value 1'))
v2=int(input('Enter value 2'))
ob1=s(1)
ob1.display(v1,v2)
ob2=s(12)
ob2.display('v1','v2')
38 a. Write in brief about SQLite and the steps used to use it.
(or)
38 b. Consider the following table structure
SUPPLIER