Python Paper St1
Python Paper St1
Note: Attempt all Sections. If you require any missing data, then choose suitably.
CO1 Interpret the fundamental Python syntax and semantics and be fluent in the use of Python control flow statements.
CO2 Express proficiency in the handling of strings and functions.
Section – A
Q.1 Attempt all parts of the following (2 x 5=10)
(a) Define Python variable? K1 CO1 2
(b) Describe Python Data Type? K1 CO1 2
(c) Define Python Blocks. K1 CO1 2
(d) Which type of language is Python? K2 CO2 2
(e) How is Python is interpreted language? K1 CO2 2
Section – B
Q.2 Attempt all parts of the following (4 x 5 =20)
(a) Difference between local variable and global variable in python? K3 CO1 5
(b) Explain five benefits of Python? K2 CO1 5
(c) Write the difference between list and tuple? K3 CO2 5
(d) In some language, every statement end with a semi- colon (;). What happens if K2 CO2 5
you put a semi colon at the end of a Python statement?
Section – C
Q.3 Attempt any one part of the following (10x 1 = 10)
(a) What will be the output of the following Python code? K4 CO1 10
i=0
while i<3:
print(i)
i+=1
else:
print(i)
(b) Explain the Python IDE in detail? K2 CO1 10
Q.4 Attempt any one part of the following (10x 1 = 10)
(a) What will be the output of the following Python code? K4 CO2 10
def cube(x):
return x*x*x
x=cube (3)
print x
(b) Explain the difference between for loop and while loop? K2 CO2 10