ilfitiitffi iffiilffi iltillltfi iltil tiliiltil tili K22U 2294
Reg. No. : ..............
Name : .,............
V Semester [Link]. Degree (CBCSS -OBE - RegularlSupplementaryl
lmprovement) Examination, November 2422
(2019 Admission Onwards)
CORE COURSE IN COMPUTER SCIENCE
5B10CSC : Computation Using Python
Time . 3 Hours Max. Marks :40
PART _ A
(Short Answer)
Anqvver all nueqtinnc (611=61
1. What is the purpose of using zeros function in numpy module ?
2. What is meant by exception ? Give example.
3. Define keyword in python. Give four examples.
4. Explain the use of linspace function in numpy with an example.
5. Give syntax for connecting to a database in python.
6. Define the function capitatize ( ). What will be the output of print
("abc. DEF".capitalizefi) ?
PART _ B
(Short Essay)
Answer any 6 questions. (6x2=12)
7. Explain string slices in python.
8. What are the different methods to Flun Python ? Explain any four methods. p.r.o.
K22U 2294 I iililililt tiiltilltlililttiittitilttllittitiit!l
L Explain comparison operators in python with suitable example.
10. Differentiate between recursion and iteration.
11. Explain any four data visualization functions in Python with suitable example,
12. Define overflow and underflow errors occur in programming.
13. Explain 2 different methods for changing the shape of an array.
14. Explain input, output function in python.
PART -C
(Essay)
Answer any 4 questions (4;t=12)
15. Write a Python program to perforrn linear search.
1^ r---t^:- tL^ I^^1..--^^ ^t n..tL^-
ro. ^L:^^r
tr,xprailr [Link] uuJUUr ^--:^-r^J
uileilleu rearureS ur ryuruil.
17. Write a Python program to reverse a number.
18. How to fetch data from a database ?
19. Mention'five benefits of using Python.
20. Explain how operator overloading can be done in Python with an example.
PART - D
1l nnn Fssav\
Answer any 2 questions (215=10)
21. Explain the control statements in Python.
22. Write a python program for finding the product of two matrices.
23. What are the basic list operations that can be performed in Python ? Explain
each operation with its syntax and example.
24. Explain basic operations on Database.