0% found this document useful (0 votes)
6 views2 pages

Python Programming Questions Semester Prep

The document contains a comprehensive list of Python programming questions categorized into two sections: 2 marks and 16 marks. It covers various topics including variable naming conventions, logical operators, data types, functions, file handling, and object-oriented programming concepts. Each question aims to assess understanding and practical application of Python programming principles.

Uploaded by

afanbarish00
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Python Programming Questions Semester Prep

The document contains a comprehensive list of Python programming questions categorized into two sections: 2 marks and 16 marks. It covers various topics including variable naming conventions, logical operators, data types, functions, file handling, and object-oriented programming concepts. Each question aims to assess understanding and practical application of Python programming principles.

Uploaded by

afanbarish00
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PYTHON PROGRAMMING QUESTIONS

2MARKS

1. Explain the naming convention of variables in python


2. Explain comment statements in python
3. Explain logical operators in python
4. Explain arithmetic expressions in python
5. Explain string literals in python
6. Explain text file formats in python
7. List out the functions used for number conversion in python
8. Write down the syntax and workflow of the for loop in python
9. Explain selection statements in python

10. What are list literals in python? Give an example


11. How do you replace an element in a list? Write a short example
12. What is the difference between list methods for inserting and removing
elements? Name any two methods each
13. What is tuple assignment? Give an example
14. What is the difference between a set and a Dictionary in python
15. What is the function in python? Why are functions called Abstraction
mechanics
16. What is a recursive function? Give a simple example
17. Differentiate between default argument and variable argument function in
python
18. What is the difference between map() and filter() function in python
19. Define python and list any two features
20. Differentiate between mutable and immutable data types
21. What are operators? List types of operators in python
22. Define list. How is it different from a tuple
23. What is recursion
24. What are function parameters
25. What is file handling
26. Define tuple assignment
27. What is polymorphism
28. Define lambda function and mapping
16 Marks

1. Explain the structure of a python program with examples. Discuss


indentation and comments
2. Explain string operations and formatting methods with suitable programs
3. Describe list operations and methods with programs
4. Write a program to perform searching and sorting in lists. Explain the logic
5. Explain functions in python and argument types with example
6. Write recursive programs (factorial, Fibonacci) and explain execution
7. Discuss file handling operations (read, write, append) with programs
8. Explain dictionaries and sets with operations and examples
9. Explain OOP concepts (class, object, inheritance, encapsulation)
10. Write a python program demonstrating operator overloading
11. Explain in detail the difference data types available in python with examples
12. Explain the looping structures in python with example program
13. List out the steps to open, read, and write the content in a text file using
python. Explain with suitable examples
14. Write down and explain any eight string functions in python with examples
15. Explain the list methods for inserting and removing elements with suitable
examples
16. Explain tuple data types, tuple assignments, and tuple loops with examples.
Also explain how several tuples are created
17. Explain function definition and calling in python and variable argument
function with suitable examples
18. Explain the built in function map(), filter(), and reduce() in python

You might also like