SEM II Python
SEM II Python
4 Write a Python program to find whether set Ais subset of set B. 2.K2,CO2
5 Comment with an example on the use of local and global variable. 2, K2,CO3
2.KI,CO3
What is Aliasing? Give Example.
2.KI.CO4
7. Define Errors and list its types.
8 What are classes and objects? 2,K1,CO4
2,K1.CO5
What do you mean by data visualization?
2,K1,CO
10. Name some common data structure of python's Pandas library.
PART - B (5 x 13 = 65 Marks)
Answer ALL Questions
a) Discuss the concept of passng the airay as an argunnent in a lunction with 3tt(u1
an exaniple program.
OR
b) Explain Packages in Python with suitable example.
14. a) llustrate in detail how text files are Read and Write in Python with 13k2 o
various COmmands.
OR
!3 K3C04
b) Write a Pthon program to handle exceptions like ZeroDivision Error.
Name Error. Type Eror. Key Error, Index Error.
7.K3COS
15. a) (i)Write a python program to plot a line graph.
6.K2 COS
(ii) Explain Array Indexing in Numpy.
OR
13 K2CO3
b) Describe various access specifiers with examples.
PART -C(1x 15 = 15 Marks)
7,K3.CO6
16. a) (i) Write aPython program to copy afilecharacter,
line by line into anew file.
word and line count in a 8K3.CO6
(i) Write a pvthon program to perform
file.
OR
b) (i) Define recursive function. Discuss with suitable example. 7,K2,CO6
(ii) Write a Python program to store 'n' numbers in a list and sort the list 8k3,CO6
using selection sort.