SET A
ANNAI VAILANKANNI ARTS AND SCIENCE COLLEGE
Owned & Managed by the Diocese of Tanjore Society
Affiliated to Bharathidasan University, Tiruchirappalli-24
+
Accredited with A Grade by NAAC– 1st Cycle
Bishop Sundaram Campus, Pudukkottai Road,
Thanjavur-613007
Continuous Internal Assessment –II
November - 2024
Class: II Course code: 22SCCCS3/
[Link]., 22SCCCA3
CS/BCA
Time:3 HRS Course Title: Programming in Python Maximum Marks: 75
SECTION A – 20 Marks
Answer ALL Questions
I A) Choose the correct answer: (5X1=5)
1 ---------- developed the Python language L1
a. Zim Dem b. Guido Van Rossum c. Niene Stom d. Wick Van Rossum
2 Round(4.576) L1
What will be the output of this function
a. 4 b. 5 c. 576 d. 4.5
3 -------------- is not a keyword in Python? L1
[Link] b. raise [Link] 4. with
4 Purpose of module in Python is L1
a. To define classes b. To create Graphical Interfaces
c. To organize functions, classes and variables d. To execute code line by line
5 ------------- blocks allows us to handle the errors. L1
[Link] block b. try block c. finally block d. none of these
B) Fill in the blanks: (5X1=5)
6 ---------------is an unordered collection of key-value pairs. L1
7 ---------------- statement terminate the loop. L1
8 ---------------- is a named location on the disk to store related information. L1
9 ---------------- is a special method called constructor. L1
10 ---------------is an abnormal condition that is caused by a runtime error in the program. L1
II Short questions: (5x2=10)
11 Describe the mutable and immutable objects. L2
12 Evaluate lambda functions. L5
13 Evaluate various attributes of a file object. L5
14 Illustrate the concept data hiding. L3
15 What are assertions in Python? L4
SECTION B - (5X 5 = 25)
Answer ALL questions by choosing either (a) or (b)
16 a) Discuss the input and output functions used in Python. L2
(Or)
b) Evaluate the features in Python. L4
17 a) Demonstrate the control statement. L3
(Or)
b) Illustrate for loop with else statement. L3
18 a) Evaluate the concept of Packages with an example. L4
(Or)
b) Explain various modes for opening a file. L2
19 a) Explain Method overriding. L2
(Or)
b) Illustrate destructors. L3
20 a) Explain the try – except statement. L2
(Or)
b) b) Discuss the importance of re module in regular expressions. L2
SECTION C - (3X 10 = 30)
Answer Any THREE questions
21 Evaluate the various types of operators. L4
22 Demonstrate and explain different types of loops. L3
23 What is function? Explain function arguments with example. L4
24 Discuss the import statement in Python. L2
25 What is Exception handling? Explain. L4
SET B
ANNAI VAILANKANNI ARTS AND SCIENCE COLLEGE
Owned & Managed by the Diocese of Tanjore Society
Affiliated to Bharathidasan University, Tiruchirappalli-24
+
Accredited with A Grade by NAAC– 1st Cycle
Bishop Sundaram Campus, Pudukkottai Road,
Thanjavur-613007
Continuous Internal Assessment –II
November - 2024
Class: II Course code: 22SCCCS3/
[Link]., 22SCCCA3
CS/BCA
Time:3 HRS Course Title: Programming in Python Maximum Marks: 75
SECTION A – 20 Marks
Answer ALL Questions
I A) Choose the correct answer: (5X1=5)
1 L1
In the Python programming syntax error is detected by ------------
[Link] b. Interpreter c. All of these d. None of these.
2 Str = [(1,1),(2,2),(3,3) ] L1
What type of data is in this expression?
a. String type b. Array Lists c. List of tuples d. str lists
3 Purpose of module in Python is L1
a. To define classes b. To create Graphical Interfaces
c. To organize functions, classes and variables d. To execute code line by line
4 -----------function return a list containing all matches. L1
[Link] b. find all c. search d. None of these
5 Which of the following blocks allows us to test the code block for errors? L1
[Link] block b. try block c. finally block d. none of these
B) Fill in the blanks: (5X1=5)
6 Number of keywords in Python ---------------. L1
7 ---------------- statement allows us to execute a statement or group of statements multiple L1
times.
8 ---------------- is a named location on the disk to store related information. L1
9 ---------------- contains a collection of data and methods. L1
10 ---------------is an abnormal condition that is caused by a runtime error in the program. L1
II Short questions: (5x2=10)
11 Describe the purpose of break statement. L2
12 Evaluate Python Dictionary. L5
13 What is suite in Python? L4
14 Illustrate the concept data encapsulation. L3
15 What is the purpose of match () function in a regular expressions? L4
SECTION B - (5X 5 = 25)
Answer ALL questions by choosing either (a) or (b)
16 a) Discuss the type List and built in List functions. L2
(Or)
b) Evaluate the type Set and built in Set functions. L4
17 a) Demonstrate the working of Recursive functions. L3
(Or)
b) Illustrate While loop with else statement. L3
18 a) Evaluate the concept of Modules with an example. L4
(Or)
b) Explain various modes for opening a file. L2
19 a) Explain Operator overloading. L2
(Or)
b) Illustrate Constructors. L3
20 a) Explain the try – finally statement. L2
(Or)
b) b) Discuss the following. L2
1. findAll( ) method 2. Compile() method
SECTION C - (3X 10 = 30)
Answer Any THREE questions
21 Evaluate Mathematical, Trigonometric and Random number functions. L4
22 Demonstrate and explain different types of loops. L3
23 What is File? Explain File operations. L4
24 Discuss the class and object. L2
25 Analyze the Search and Replace( ) , match ( ), Search () methods. L4