0% found this document useful (0 votes)
18 views

Python Paper St1

Uploaded by

Varsha Saxena
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Python Paper St1

Uploaded by

Varsha Saxena
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Raj Kumar Goel Institute of Technology, Ghaziabad

ST1 (Odd Semester) 2024-25


B.Tech.[Branch/Section: ] Semester: 3rd
Subject Name: PYTHON Total Marks :50
Subject Code: BCC-302 Time: 01:30 Hours
Roll No./Name: ____________________________________________

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

You might also like