Previous Year Question List - Python BCC402
Previous Year Question List - Python BCC402
UNIT 2
Paper 1: 2021-22 Odd Semester
1. What will be the output of the following Python code?
i = 0
while i < 3:
print(i)
i += 1
else:
print(0)
2. Write a Python program to construct the following pattern using a nested for loop:
*
* *
* * *
* * * *
UNIT 3
Paper 1: 2021-22 Odd Semester
1. Explain Tuples and Unpacking Sequences in Python Data Structure.
2. Write a Python program to change a given string to a new string where the first and last
characters have been exchanged.
3. Write a Python program to add an item in a tuple.
4. Explain the terms Merge List and Merge Sort in Python Programming.
UNIT 4
Paper 1: 2021-22 Odd Semester
1. What are File input and output operations in Python Programming?
2. How to create and import a module in Python?