Introduction To Python Programming 2022 2023
Introduction To Python Programming 2022 2023
TCS–201
B. Tech. (CSE) (Second Semester)
EXAMINATION, 2022-23
INTRODUCTION TO PYTHON PROGRAMMING
Time : Three Hours
Maximum Marks : 60
Note : Question paper has three Sections. Read carefully
instructions for each Section.
Section—A
(Very Short Answer Type Questions)
P. T. O.
[2] TCS–201
OR
Write a program in python to check if a given
number by user is an Armstrong number or not.
(d) Illustrate Recursive functions with the help of
suitable example. (CO2, UN)
OR
Write a program in python to print the pattern
given below :
(i) 12345
(ii) 1234
(iii) 123
(iv) 12
(v) 1
(e) Explain the steps to import a module. Also
explain math module and OS module with
example. (CO5, UN)
OR
Define Inheritance and Polymorphism with the
help of example.
(f) What do mean by error handling ? Explain with
suitable example. (CO4, EV)
OR
Define flow control statements with example.
P. T. O.
[4] TCS–201
Section—C
(Long Answer Type Questions)
3. Attempt all questions. 8 each
(a) What are the various features of object-oriented
programming and its advantages ? (CO4, UN)
OR
Describe the program structure and design of
python in detail.
(b) Write a program to check if a given string is
palindrome or not. (CO4, UN)
OR
Explain the different types of function argument.
Explain with suitable example.
(c) Write a short note on : (CO5, UN)
(i) Function Calling
(ii) Pass by Value
OR
Write a program to create a file name
“Dictionary” and write two words “Earth” and
“Technology” to it.
TCS–201