I|ililil |ilil fiiililtilfi ffililltilil
NP - 280
Vl Semester [Link] , e*^#nlr,on,Juty/August 2024
(NEP)
COMPUTER SCIENCE
CS 13 : Python Programming
Time : ZYz Hours Max. Marks: 60
lnstruction : Answer all the Secflons.
SECTION _ A
l. (4x2=$)
1) How do you write single line and multiple comments in python ?
2) Why pass statement is used in Python ?
3) Explain the built-in-functions used in dictionaries in python.
4) What is the use of Matplotlib library ?
5) What is pickling and unpickling ?
6) Explain the concept of indexing and slicing in lists.
SECTION _ B
ll. Answer any four questions. Each question carries five marks : (4x5=20)
V) Explain the relation between tuples and lists in python.
8) Explain any two libraries with an example.
9) Explain single and multiple inheritance with an example.
10) How type conversion is performed in python ?
1 1) Describe the various control flow statements in python.
12) Write a program on "Break" and "Continue" statements.
P.T.O.
NP - 280 Iilffil iltil iltifitililtililillt
SECTION -C
lll. Answer any four questions. Eaeh question carries eight marks : (4x8=32)
13) Explain the features of Python. I
14) a) Explain default arguments and variable length arguments. 4
b) Explain the steps reading and writing CSV files in Python. 4
15) a) Discuss the different ways to create a dictionary in Python. 4
b) Explain the difference between a dictionary and a set in Python. 4
16) a) Explain read and write methods of file object in Python. 4
b) Explain the method overriding with an example. 4
17) a) Explain the steps to create classes and objects in Python. 4
b) Discuss the different types of files in Python. 4
18) a) Explain the use of the "Continue" and "Break" statement in Python. '3
b) Discuss the process of data visualization using plotly and JSON
format in Python. 5
d.