U23cs382 ND24
U23cs382 ND24
Second Semester
B.E. – Computer Science and Engineering
(Common to B.E. – ECE, CCE and B.Tech. – IT, CSBS)
(Regulations 2023)
Page 1 of 3
SECE/CoE/QPT/002/Rev. 00/03.05.2022
Part B – (5 X 16 = 80 Marks)
11 a) (i) Explain in detail about various data types in Python with an 8 CO1 K2
example?
(ii) Write a program to perform addition, subtraction, 8 CO1 K2
multiplication, integer division, floor division and modulo
division on two integer and float.
(Or)
11 b) (i) Illustrate the purpose of Iteration statements with relevant 8 CO1 K2
examples in python
(ii) Illustrate the need for and importance of functions in python. 8 CO1 K2
Write a python program to accept three numbers and find
the largest among them using functions.
12 a) (i) What are the basic list operations that can be performed in 10 CO2 K2
Python? Explain each operation with its syntax and example
(ii) Develop a program to sort the dictionary elements based on 6 CO2 K2
values.
(Or)
12 b) (i) Differentiate between lists, tuples and dictionaries? Give an 10 CO2 K2
example for their usage.
(ii) Develop a program to sort the elements of a list based on 6 CO2 K3
the length of the elements.
Page 2 of 3
SECE/CoE/QPT/002/Rev. 00/03.05.2022
(Or)
14 b) (i) Demonstrate the concept of Python oops inheritance and 10 CO4 K3
method overriding in Python classes with an example.
(ii) Outline the basic methods of interacting with a MongoDB 6 CO4 K3
server
Page 3 of 3
SECE/CoE/QPT/002/Rev. 00/03.05.2022