Python_Important_Questions_Thiruvalluvar_2025
Python_Important_Questions_Thiruvalluvar_2025
2-Marks:
1. What is Python?
5-Marks:
10-Marks:
2-Marks:
3. What is recursion?
5-Marks:
1. Write a Python program using a loop to print even numbers from 1 to 100.
2. Explain any two types of control statements.
10-Marks:
3. Write a program to calculate the sum of digits of a number using loops and functions.
2-Marks:
5-Marks:
10-Marks:
3. Compare and contrast lists, tuples, and sets with suitable examples.
2-Marks:
1. Define a class.
2. What is inheritance?
5-Marks:
10-Marks:
2. Write a program to implement multiple inheritance and demonstrate method resolution order.
2-Marks:
2. What is an exception?
5-Marks:
10-Marks:
1. Write a program to read from one file and write the contents into another file.
2. Explain the different types of exceptions and how they are handled in Python.
3. Describe file handling operations in Python with examples (open, read, write, close).