Python Qp
Python Qp
Section -A
Q.No Questions M L CO
.
1.A What is an arithmetic expression? What is the output of this 4 L1 CO1
statement? ‘hello world’ + 100 + ’how are you’ explain the reason
if the statement produces an error
1.B Discuss various methods of importing modules in Python 5 L1 CO1
programs. Which method is best? Explain.
1.C What are the rules for naming variables. 4 L1 CO1
OR
2.A Explain looping control statements in Python with a syntax 4 L1 CO1
and example to each.
2.B 1. What are functions? Explain Python function with parameters 5 L1 CO1
and return statements
2.C Mention FOUR scope rules of variables in Python. 4 L1 CO1
Section -B
3.A Discuss list and dictionary data structure with example 7 L1 CO2
for each.
3.B Differentiate between list and dictionary 5 L1 CO2
OR
4.A Explain negative indexing, 6 L1 CO2
slicing.index(),append(),remove(),pop(),insert() & sort().
4.B 2. Explain with a programming example to each: (i) get() (ii) 6 L1 CO2
setdefault()
GOVERNMENT ENGINEERING COLLEGE BIDAR -585403
CIE – I Question Paper for B. E. (CSE)IISemester, 2023-24
SECTION-A
1.A.What is an arithmetic expression? What is the output of this statement? ‘hello world’ + 100 + ’how are you’
explain the reason if the statement produces an error.(4M)
1.B.Discuss various methods of importing modules in Python programs. Which method is best? Explain.(5M)
1.C. What are the rules for naming variables.(4M)
OR
2.A.Explain looping control statements in Python with a syntax and example to each.(4M)
2.B.What are functions? Explain Python function with parameters and return statements.(5M)
2.C. Mention FOUR scope rules of variables in Python.(4M)
SECTION –B
3.A.Discuss list and dictionary data structure with example for each.(7M)
3.B.Differentiate between list and dictionary.(5M)
OR
4.A.Explain negative indexing, slicing.index(),append(),remove(),pop(),insert() & sort().(6M)
4.B. Explain with a programming example to each: (i) get() (ii) setdefault().(6M)