PP (5th) Dec2023

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Roll No. Total No.

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.

f) What are regular expressions?


b
g) Explain briefly about web surfing.

h) Describe the relationship between child and parent windows.

i) Write a short note on application programmer’s interface (DB-API).

j) Write a SQL command to create a table with three fields of different types.

1 | M-78324 (S2)-1287
SECTION-B

2. Differentiate between Lists and Tuples with the help of an example.

3. What are command-line arguments? Explain clearly the difference between ‘argc’ and
‘argv’ arguments.

4. What is pattern-matching? Describe two ways to accomplish pattern-matching.

5. Write a short note on Tkinter, Pmw and Tix GUI highlighting the difference among
them.

6. What are adapters in databases? Discuss various factors to be considered while


choosing an adapter.

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

You might also like