PP (5th) Dec2023
PP (5th) Dec2023
PP (5th) Dec2023
of Pages : 02
Total No. of Questions : 09
B.Tech. (CSE) (Sem.–5)
PROGRAMMING IN PYTHON
Subject Code : BTCS-510-18
M.Code : 78324
Date of Examination : 27-01-2023
Time : 3 Hrs. Max. Marks : 60
INSTRUCTIONS TO CANDIDATES :
1. SECTION-A is COMPULSORY consisting of TEN questions carrying T WO marks
each.
2. SECTION-B contains FIVE questions carrying FIVE marks each and students
have to attempt any FOUR questions.
3. SECTION-C contains T HREE questions carrying T EN marks each and students
have to attempt any T WO questions.
m
SECTION-A
o
1. Write briefly :
.r c
p e
a) Discuss briefly about dir() and help() functions.
m
a o
p .r c
b) Differentiate between an error and an exception.
b r
c) What is persistent storage?
e
d) Explain briefly about modulus.
a p
r p
e) Write a short note on global interpreter lock.
j) Write a SQL command to create a table with three fields of different types.
1 | M-78324 (S2)-1287
SECTION-B
3. What are command-line arguments? Explain clearly the difference between ‘argc’ and
‘argv’ arguments.
5. Write a short note on Tkinter, Pmw and Tix GUI highlighting the difference among
them.
SECTION-C
7.
o m
What is Common Gateway Interface (CGI)? Explain in detail about the working of CGI
.r c
with the help of an example.
8. What are hash tables and how do they relate to dictionaries? Also explain how are the
p e
elements inserted, updated and removed from dictionaries.
m
a o
.r c
9. Describe the process of exception detection and handling in detail with the help of an
r p
example. What role does assertion play in exception handling?
b p e
p a
b r
2 | M-78324 (S2)-1287