0% found this document useful (0 votes)
5 views1 page

Class12 Python Question Bank

The document is a question bank for Class 12 Python preparation, covering important theory and programming questions. It includes topics such as Python features, data types, control structures, functions, file handling, exception handling, object-oriented programming, and SQL. Additionally, it provides programming exercises and SQL queries related to database management.
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)
5 views1 page

Class12 Python Question Bank

The document is a question bank for Class 12 Python preparation, covering important theory and programming questions. It includes topics such as Python features, data types, control structures, functions, file handling, exception handling, object-oriented programming, and SQL. Additionally, it provides programming exercises and SQL queries related to database management.
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

Class 12 Python Question Bank

Important theory and programming questions for Class 12 Python preparation.

1. What is Python? Mention its key features.


2. Differentiate between compiler and interpreter.
3. Explain Python tokens with examples.
4. What are variables? State naming rules in Python.
5. Differentiate between mutable and immutable data types.
6. Explain list, tuple, set, and dictionary with examples.
7. Write a program to find the largest of three numbers.
8. Write a program to check whether a number is prime.
9. Explain if, if-else, and nested if statements.
10. Differentiate between for loop and while loop.
11. Write a program to generate the Fibonacci series.
12. What is a function? Explain user-defined functions.
13. Differentiate between local and global variables.
14. Explain recursion with an example.
15. What are modules? How are they used?
16. Explain file handling in Python.
17. Differentiate between text files and binary files.
18. Write a program to count words in a text file.
19. What is exception handling? Explain try-except.
20. Explain classes and objects in Python.
21. Differentiate between method overloading and overriding.
22. What is inheritance? Explain its types.
23. Explain constructor (__init__) with example.
24. What is a database? Explain DBMS.
25. What is SQL? State its advantages.
26. Explain SELECT, INSERT, UPDATE, and DELETE commands.
27. Write SQL queries using WHERE, ORDER BY, and GROUP BY.
28. Explain primary key and foreign key.
29. What is connectivity between Python and MySQL?
30. Write a Python program to connect to a MySQL database.

You might also like