0% found this document useful (0 votes)
59 views1 page

Python First Sessional - IT - 24-25

Uploaded by

bittu4554gn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views1 page

Python First Sessional - IT - 24-25

Uploaded by

bittu4554gn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Roll No :

IIMT COLLEGE OF ENGINEERING, GREATER NOIDA


B TECH
FIRST SESSIONAL TEST (ST-1) EXAMINATION (ODD SEM)-2024-25
Course Name: Python Programming Course Code: BCC-302
Program: B. Tech Semester: III Branch: IT
Date of Exam: 25/10/2024 Duration: 1.30 Hours Max. Marks: 50
Note: Attempt all Sections. If require any missing data; then choose suitably.

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

3. Attempt any TWO Parts 5 x 2 = 10


Q no. Questions Marks Cognitive CO
level
(a) WAP to check prime or not given by user. 5 R (BL 1) 2
(b) WAP to print factorial of given number using while loop. 5 U (BL 2) 2
(c) Explain all conditional statements in python using small code example. 5 R (BL 1) 2

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

Signature (Subject Teacher/Subject Coordinator) Signature (HOD)

Page 1 of 1

You might also like