ABES Engineering College, Ghaziabad
Session: 2025-26
Semester: 4th
Course Code: BCC-402
Course Name: PYTHON PROGRAMMING
Instructions:
1. Attempt All sections.
2. If require any missing data, then choose suitably.
Q. No. Question Marks CO KL PI
Section-A
1 Attempt ALL parts from the following
Discuss why Python is called as dynamic and strongly-typed
a) language. 2 CO1 K2 1.3.1
b) Explain the difference between / and // operator. 2 CO1 K2 1.3.1
n=int(input("enter rows: "))
for row in range(1,n):
for col in range(1,2*row):
if col%2==0:
print(" ",end=" ")
c) else: 2 CO2 K2 2.1.2
print("*",end=" ")
print()
what is the output of the above-mentioned code?
(company-specific)
d) How pass statement is different from comment? 2 CO2 K2 3.2.2
Section-B
2 Attempt ALL parts from the following
a) Explain implicit and explicit type conversion with example. 4 CO1 K2 1.3.1
Discuss the various numeric data types in python with
b) 4 CO1 K2 1.3.1
examples.
3 Attempt ALL parts from the following
Write a Python program to print prime numbers ranging from 1 to
a) 4 CO2 K3 2.1.2
100
Write a Python program to display the sum of 12+22+32+…+n2,
b) 4 CO2 K3 2.1.2
where n is given by a user using loop.
Section-C
4 Attempt ALL parts from the following
Discuss why python is an interpreted language? Explain history
a) and features of python. Also list some real-world applications. 1+4+2 CO1 K2 1.3.1
Describe the different types of operators in Python. Also explain
b) their precedence and associativity. 5+2 CO1 K2 1.3.1
5 Attempt ALL parts from the following
Write a python program to check whether a number is palindrome
a) 5+2 CO2 K3 3.2.2
or not. Explain each step of the program.
Consider the following Python Code:
x=5
y=0
while x > 0:
if x % 2 == 0:
b) 7 CO2 K3 3.2.2
y += x
else:
y -= x
x -= 1
print(y)
Explain the flow of execution and compute the final value of y
CO Course Outcomes mapped with respective question
KL Bloom's knowledge Level (K1, K2, K3, K4, K5, K6)
K1- Remember, K2- Understand, K3-Apply, K4- Analyze, K5: Evaluate, K6- Create