You are on page 1of 1

Reg. No.

SSM COLLEGE OF ENGINEERING::KOMARAPALAYAM-638183


BE/B.Tech DEGREE SECOND INTERNAL ASSESSMENT NOV/DEC 2023
Second Semester Regulations - 2021
B.TECH(TT/TC/PCT/PE)
GE3151 &Problem Solving and Python Programming
Time: 1 hour 45 minutes Maximum : 60 marks
Answer ALL questions
PART A – 6 X 2 = 12 marks CO
1. Write a python program to print the first n perfect square CO3
2. Strings are immutable. justify CO4
3. What is cloning list? Give example. CO5
4. Write a python program to check if any a given key is already in a dictionary CO5
5. What is format operator? Give example. CO6
6. List any 4 file operation. CO6

PART B – 3 X 16 = 48 marks
7. a. Explain the syntax and structure of user defined functions in python with examples also 16 CO4
discuss about parameter passing in functions
OR
b. i Write a program to calculate GCD using recursive function 6 CO4
ii Write a program to search a key value in an array using linear search 10 CO3

8. a. i Explain in detail about list,list operations and list slices. 12 CO5


ii Write a program to find sum an array of numbers in a list 4 CO5
OR
b. i Write a python program to sort n numbers using selection sort. 12 CO5
ii Compare and contrast tuples and list 4 CO5

9. a. i Explain the commands used to read and write into a file with an example program 10 CO6
ii Discuss about the use of format operator 6 CO6
OR
b. i Describes how exceptions are handled in python with necessary examples 16 CO6

Signature of Course Cordinator Signature of HOD

You might also like