PYTHON PROGRAMMING PRACTICAL TEST
Subject: Python Programming
Time: 3 Hours
Maximum Marks: 50
Instructions:
1. Attempt all questions.
2. Write clear and properly indented Python programs.
3. Use meaningful variable names.
4. Output must match the problem statement.
5. Marks will be awarded for logic, correctness, and readability.
Section A: Basics of Python (20 Marks)
Q1. Write a Python program to accept n numbers from the user and store them in a list.
Display the list. (5 Marks)
Q2. Write a Python program to find the sum, average, maximum and minimum of elements
in a list. (5 Marks)
Q3. Write a Python program to reverse a list without using built-in reverse functions. (5
Marks)
Q4. Write a Python program to count the number of even and odd elements in a list. (5
Marks)
Section B: Python using DSA Concepts (30 Marks)
Q5. Write a Python program to perform Linear Search and Binary Search on a list. (8 Marks)
Q6. Write a Python program to sort a list using Bubble Sort or Selection Sort. (7 Marks)
Q7. Write a Python program to insert and delete an element at a given position in a list. (7
Marks)
Q8. Write a Python program to find the second largest element in a list without sorting it. (4
Marks)
Q9. Write the time complexity for the following operations:
1. Accessing an element in a list
2. Linear Search
3. Binary Search
4. Insertion at the beginning of a list (4 Marks)
Bonus Question:
Write a Python program to merge two lists. (+5 Marks)