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

Python_Important_Questions_Thiruvalluvar_2025

The document outlines important questions for a Python Programming course at Thiruvalluvar University for the year 2025, categorized into five units. Each unit includes 2-mark, 5-mark, and 10-mark questions covering topics such as data types, control statements, object-oriented programming, and file handling. The questions aim to assess students' understanding of Python concepts and their ability to write programs.

Uploaded by

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

Python_Important_Questions_Thiruvalluvar_2025

The document outlines important questions for a Python Programming course at Thiruvalluvar University for the year 2025, categorized into five units. Each unit includes 2-mark, 5-mark, and 10-mark questions covering topics such as data types, control statements, object-oriented programming, and file handling. The questions aim to assess students' understanding of Python concepts and their ability to write programs.

Uploaded by

meenukarthi5304
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Thiruvalluvar University - Python Programming - Important Questions (2025)

Unit I - Introduction to Python

2-Marks:

1. What is Python?

2. Mention any two features of Python.

3. What are identifiers and keywords?

5-Marks:

1. Explain the different data types in Python with examples.

2. Write a program to find the largest of three numbers.

3. Differentiate between mutable and immutable types.

10-Marks:

1. Explain in detail the basic structure and features of Python.

2. Write a Python program to check if a number is a palindrome.

3. Describe the different types of operators used in Python with examples.

Unit II - Control Statements and Functions

2-Marks:

1. Write the syntax of a for loop.

2. What is the difference between break and continue?

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.

3. Define a function and give an example in Python.

10-Marks:

1. Write a program to find factorial using recursion.

2. Explain the different types of user-defined functions in Python.

3. Write a program to calculate the sum of digits of a number using loops and functions.

Unit III - Strings, Lists, Tuples, and Dictionaries

2-Marks:

1. What is string slicing?

2. Define a list with an example.

3. Mention two differences between lists and tuples.

5-Marks:

1. Write a Python program to count vowels in a string.

2. Explain dictionary operations with examples.

3. Write short notes on list comprehension.

10-Marks:

1. Explain the operations and methods on strings with examples.

2. Write a program to demonstrate CRUD operations in a dictionary.

3. Compare and contrast lists, tuples, and sets with suitable examples.

Unit IV - Object Oriented Programming

2-Marks:

1. Define a class.
2. What is inheritance?

3. What is the use of __init__()?

5-Marks:

1. Explain how to create a class and object in Python.

2. Write a program to implement single inheritance.

3. What is method overriding? Give an example.

10-Marks:

1. Explain the four major principles of OOP with Python examples.

2. Write a program to implement multiple inheritance and demonstrate method resolution order.

3. Describe the concepts of constructor, method overloading, and overriding in Python.

Unit V - File Handling and Exception Handling

2-Marks:

1. How to open a file in read mode?

2. What is an exception?

3. Define the use of finally block.

5-Marks:

1. Write a program to write data into a file.

2. Explain try-except-else block in Python with example.

3. Write a short note on file modes in Python.

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).

You might also like