Python First Sessional_IT_24-25
Python First Sessional_IT_24-25
SECTION-A
1. Attempt ALL parts. 2 x 5 = 10
Q no. Questions Marks Cognitive CO
level
(a) What is the use of Type() function in Python? 2 R (BL 1) 1
(b) What will be the output : a=10, b=4 print( a&b) 2 R (BL 1) 1
(c) What is Indentation in Python? 2 R (BL 1) 1
(d) Guess the output of following code 2 U (BL 2) 2
while True:
print("IIMT COLLEGE OF ENG.")
(e) Define pass in python. 2 R (BL 1) 2
SECTION-B
2. Attempt any TWO Parts 5 x 2 = 10
Q no. Questions Marks Cognitive CO
level
(a) What is Python programming? Explain the various features of Python programming? 5 R (BL 1) 1
(b) WAP in python to swapping of two numbers without using third variable. 5 R (BL 1) 1
(c) Define the python blocks. 5 U (BL 2) 1
SECTION C
Q no. Questions Marks Cognitive CO
level
(a) Explain Ternary Operator in Python. WAP in python to check year is leap year or 10 U (BL 2) 1
not using ternary operator.
(b) Briefly explain the bitwise and logical operator in python with code example. 10 R (BL 1) 1
4. Attempt any ONE Part 10x1=10
5. Attempt any ONE Part 10x1=10
Q no. Questions Marks Cognitive CO
level
(a) Explain Break, Continue and pass with proper syntax and proper code example. 10 U (BL 2) 2
(b) WAP in python to check given number is palindrome or not. 10 U (BL 2) 2
Page 1 of 1