(6 pages) Reg. No. : ........................................
Code No. : 20361 E Sub. Code : AEIT 51
B.Sc. (CBCS) DEGREE EXAMINATION,
NOVEMBER 2023.
Fifth Semester
Information Technology
Major Elective – PYTHON PROGRAMMING
(For those who joined in July 2020 only)
Time : Three hours Maximum : 75 marks
PART A — (10 × 1 = 10 marks)
Answer ALL questions.
Choose the correct answer :
1. Which type of Programming does Python support?
(a) object-oriented programming
(b) structured programming
(c) functional programming
(d) all of the above
2. The correct extension of the Python file is?’
(a) .python (b) .pl
(c) .py (d) .p
3. All keywords in Python are in ––––––––––––.
(a) Capitalized
(b) Lower case
(c) UPPER CASE
(d) None of the mentioned
4. What will be the value of the following Python
expression?
4 + 3% 5
(a) 7 (b) 2
(c) 4 (d) 1
5. The keyword that is used for function in Python
language is ––––––––––––.
(a) Function (b) def
(c) Fun (d) Define
6. The order of precedence in python is –––––––––––.
(a) Exponential, Parentheses, Multiplication,
Division, Addition, Subtraction
(b) Exponential, Parentheses, Division,
Multiplication, Addition, Subtraction
(c) Parentheses, Exponential, Multiplication,
Division, Subtraction, Addition
(d) Parentheses. Exponential, Multiplication,
Division, Addition, Subtraction
Page 2 Code No. : 20361 E
7. Which of the following functions is a built-in
function in python
(a) factorial( ) (b) print( )
(c) seed( ) (d) sqrt( )
8. The use of id( ) function in python is –––––––––––.
(a) Every object doesn’t have a unique id
(b) Id returns the identity of the object
(c) All of the mentioned
(d) None of the mentioned
9. Identify the data type that is not available in
Python programming?
(a) Tuples
(b) Lists
(c) Class
(d) Dictionary
10. Which one of the following is not a keyword in
Python language?
(a) pass (b) eval
(c) assert (d) non local
Page 3 Code No. : 20361 E
PART B — (5 × 5 = 25 marks)
Answer ALL questions, choosing either (a) or (b).
Each answer should not exceed 250 words.
11. (a) What are Atoms in Python ? Explain.
Or
(b) Explain the structure of the python program
in detail.
12. (a) Explain Break statement with an example.
Or
(b) Write about while loop with an example.
13. (a) Explain default argument with an example.
Or
(b) Explain how parameters and arguments are
passed in function definition?
14. (a) Define Instant variable with example.
Or
(b) Write a note on Exception in Python.
15. (a) Write a python program using binary search.
Or
(b) Explain Selection sorting technique using
python.
Page 4 Code No. : 20361 E
[P.T.O.]
PART C — (5 × 8 = 40 marks)
Answer ALL questions, choosing either (a) or (b).
Each answer should not exceed 600 words.
16. (a) Explain the role of Interpreter and compiler in
python.
Or
(b) Write a brief note on Identifier in python.
17. (a) Write the syntax of for loop and find the
output of the following code
numbers=[l,2,4,6, 11,20]
seq=0
for val in numbers:
seq=val*val
print(seq)
Or
(b) Explain about input and output statement
with example.
18. (a) Briefly explain various data types available in
python.
Or
(b) Explain various components of Function
Definition.
Page 5 Code No. : 20361 E
19. (a) Discuss Super( ) Method with an example.
Or
(b) Explain various type of inheritance in detail.
20. (a) Creates Program for Linear Search using
array.
Or
(b) Write a python program to plot a curve.
———————
Page 6 Code No. : 20361 E