Python Question Bank
Python Question Bank
Question Bank
1. comparison between Python, C, C++ and Java in terms of syntax, ease of use and application areas
2. Various Python editors available and their features.
3. Control statements in Python with suitable programming examples.
4. What is dictionary in Python? Demonstrate different ways to create and manipulate of dictionaries.
5. Features of Python programming language.
6. Process of installing Python and setting up IDLE.
7. Write Python programs to demonstrate the use of lists and tuples.
8. What is function? Explain the different Python built-in functions with suitable examples.
9. Explain with suitable programming examples, the significance of the special variable __name__ in
Python?
10. With suitable programming examples compare and contrast the filter(), map(), and reduce() functions in
Python.
11. What is a module in python. Discuss the process of creating and importing a user-defined module in
Python.
12. How do you define and call a function in Python? Write the types of functions based on arguments.
13. What is a lambda function in Python explain in detail? How Lambda functions is different from Def
function?
14. Discuss the use and benefits of inbuilt modules in Python. How user defined modules are created and
imported? Illustrate with an example.
15. What is inheritance in Python? Explain how inheritance allows for code reusability and the creation of
hierarchical relationships between classes.
16. Explain the concept of inheritance. Discuss the types of inheritance in Python with suitable examples.
17. Explain in detail about python files, its types, functions and operations that can be performed on files with
example.
18. Discuss the different built-in exception classes in Python.
19. Explain how Python handles multiple exceptions in a try-except block with suitable examples.
20. Write short note working with classes and objects
21. The self parameter
22. __init__ method
23. __str_ method
24. What is multithreading in Python?
25. Write a multithreading Python program that demonstrates parallel execution of multiple tasks. Use the
threading module to create and manage threads in the program.
26. Write a Python program to create a basic HTML page using Python's web development capabilities
27. Write various basic array operations using the SciPy library with programming examples.
28. The process of developing a user interface with Tkinter.
29. Demonstrate basic string manipulation in Python with examples of slicing and concatenation.
30. What is multithreading in Python? How multithreading can be implemented in Python?
31. Write a Python script to create a simple GUI application along with multiple menu options using Tkinter.
32. Explain the steps involved in installing the NumPy library and demonstrate basic array operations in
NumPy.