You are on page 1of 2

NADAR MAHAJANA SANGAM S.

VELLAICHAMY NADAR COLLEGE


An Autonomous Co-Educational Institution Affiliated to Madurai Kamaraj University
Re-accredited with ‘A’ Grade by NAAC
Nagamalai, Madurai - 625 019.
Internal I Semester v Max. Marks 40
Class III Date 17/08/2023 Time 2 hr
Subject Name Python programming Subject Code 212503506
PART – A
Multiple Choice Question (6x1 = 6 marks)
1 K1 CO1 The input ( ) function takes user’s input as a
A integers b) float c) string d) character
2 K1 CO1 Bitwise operator can be applied on which data type ?
A )integer b)Float c) String d) List
3 K1 CO1 ------------of a variable determines the part of the program in which it is
accessible .
a)scope b) lifetime c) data type d)value
4 K1 CO2 If number of arguments in function definition and function call not match,
then which type of error is returned.
a)Name error b)Import error c)Type error d)Number error
5 K1 CO2 Which operator is used to repeat a string n number of times.
a)+ b)* c)[] d)+=
6 K1 CO3 The index of the first character in the string is
a)0 b)1 c) n-1 d)n
PART – B
Paragraph Question (2x5 = 10 marks)
7 K2 CO1 a)Elaborate syntax of the following statement with example.
i) for loop ii)while loop
Or
b)Explain the utility of
a) break statement with example. b) Continue statement with example.
8 K2 CO2 a) What is recursion. Explain with Fibonacci series program
Or
b) Differentiate global and global variable with example.
PART – C
Paragraph Question (3x8 = 24 marks)
9 K3 CO1 a) Demonstrate various if statements in python with example.
Or
b) Summarize the operators in python. Explain operators precedence with
example.
10 K3 CO2 a) Describe the various techniques to define and call a function with
example.
Or
b) Write the following program using function.
a)convert time to minutes. b)sum the series 1/1!+4/2!+27/3!+--------n.
11 K3 CO3 a).Elaborate string formatting operator with example.
Or
b) Demonstrate various string operations with example.

You might also like