JP INSTITUTE OF ENGINEERING & TECHNOLOGY,
MEERUT (282)
IST SESSIONAL EXAMINATION: (ODD SEM 2024-25)
SUBJECT:PYTHON SUBJECT CODE: BCC302 ROLL NO.:
PROGRAMING
BRANCH & SEM: DURATION: 1.00hr MAX MARKS: 30
CS/IT/ME/CE/EC–3RD SEM
Section-A
Attempt all questions in brief. 2X5 =
10
1. Explore the working of while, and for loop with examples?
2. What is the difference between Python Arrays and lists?
3. Explain why the program generates an error:
x = [‘12’, ‘hello’, 456]
x[0] *= 3
x[1][1] = ‘ bye’
4. In some language, every statement ends with a semi-colon(:). What happens if you put a
semi-colon at the end of a Python statement?
5. Define floor division with an example?
Section-B
Attempt any two of the following: 5X2=10
1. Explain the programming cycle for python, Elements of Python, Type Conversion in
Python, Operator Precedence, and Boolean Expression .
2. What do you mean by DATA TYPES using python.
3. Discuss List, Tuples, Dictionary with Example.
Section-C
Attempt any two of the following: 5X2=10
1. Explain the purpose and working of loops. Discuss Break and continue with example.
Write a python program to convert time from 12 hour to 24 hour format.
2. What is python? How Python is interpreted language? What are the tools that help to find
bugs or perform static analysis? What are the Python Decorators?
3. Explain all the Conditional Statement in Python using small code Example.
4. Write a python program to print 2 to 10 using loop.