ROLL NO.
SHEAT COLLEGE OF ENGINEERING, BABATPUR, VARANASI
EVEN SEMESTER FIRST SESSIONAL EXAMINATION (2023-24)
COURSE- B.TECH.
BRANCH- CSE
SEMESTER- IV
PYTHON PROGRAMMING (BCC402)
Time: 01:30 hrs. Max. Marks: 30
SECTION A
A: Attempt all the questions. Each question carries equal marks (2x5= 10)
Q. No. Questions CO’s Bloom’s Level
a. What is python? Why we use. 1 K1
b. Write the name & there use of basic operators of python? 1 K1
c. Write the code for add, sub, mul, div of two numbers? 1 K1
d. What is difference between int and float? 1 K1
e. What do you mean by loop in python? 2 K1
SECTION B
B: Attempt any two of the following. Each question carries equal marks (5x2= 10)
Q. No. Questions CO’s Bloom’s Level
a. What is the output of the following code? 1 K1
var1 = 1
var2 = 2
var3 = "3"
print(var1 + var2 + var3)
b. What is if, else and else if ? explain with suitable example. 2 K2
c. Write a code for check the entered number is fail or pass. 2 K1
SECTION C
C: Attempt any one of the following. Each question carries equal marks (10x1=10)
Q. No. Questions CO’s Bloom’s Level
a. How many types of loop? Explain each with example. 2 K2
b. What is use of data type in programming language, how many types of data 1 K1
type in python, write there name?