Py 5
Py 5
USN 18CS34
B. E. Degree (Autonomous) Third Semester End Examination (SEE)
PYTHON PROGRAMMING
(Model Question Paper – II)
Time: 3 Hours] [Maximum M
Instructions to students:
Answer FIVE FULL questions
RBT
Q.No. Questions Marks CO Cognitive
Level
Explain the concept of scope and lifetime of variables
a) 8 CO1 L2
in Python programming language with an example.
Explain command line arguments and write a program
1. b) 6 CO1 L2
to demonstrate command line arguments.
Write a Python program to check if a 3 digit number is
c) 6 CO1 L3
Armstrong number or not.
OR
Illustrate *args and **kwargs parameters in Python
a) 7 CO1 L2
programming language with an example.
Report the Value for sin(x) up to n terms
using the series
2. b) 7 CO1 L3
where x is in
degrees
c) Write Pythonic code to find the factorial of a number. 6 CO1 L3
******