No.
of Printed Pages : 2 1 21BSC5C5CSL
21BSC5C5CSL
!21BSC5C5CSL!
B.Sc. V Semester Degree Examination, April/May - 2024
COMPUTER SCIENCE
DSC5 : Programming in Python
(NEP)
Time : 2 Hours Maximum Marks : 60
Note : Answer all Sections.
SECTION - A
1. Answer the following sub-questions. Each sub-question carries one mark. 10x1=10
(a) Name two modes of Python.
(b) What is a statement ?
(c) What is an exception ?
(d) Mention the types of function.
(e) Write the basic tuple operations.
(f) What is sets ?
(g) Mention the basic file types.
(h) What is Polymorphism ?
(i) What is Tkinter ?
(j) Why do we use NumPy ?
!21BSC5C5CSL! P.T.O.
21BSC5C5CSL 2
SECTION - B
Answer any four of the following questions. Each question carries five marks. 4x5=20
2. Discuss the basic datatypes of Python.
3. Write a Python program to demonstrate user defined function.
4. Explain the built in functions used on dictionaries.
5. Describe the various access modes of the file.
6. What is SQLite ? Mention the operations on tables in SQLite.
7. Explain exception handling with an example.
SECTION - C
Answer any three of the following questions. Each question carries ten marks.
3x10=30
8. Explain features of Python.
9. Explain any five string methods with syntax and example.
10. Define List. Write a Python program to demonstrate the use of list.
11. What is inheritance ? Explain the types of inheritance.
12. Write a Python program to draw line chart and bar chart using Matplotlib.
-oOo-
!21BSC5C5CSL!