1. Q1. Which of the following data types is mutable in Python?

2. Q2. What will be the output? x = [10, 20, 30] print(x[-1])

3. Q3. How do you access the "name" value from this dictionary?employee = {"name": "Rahul", "salary": 30000}

4. What does the append() method do?

5. What will be the output? x = [1, 2, 3] x.reverse() print(x)

6. What is the main property of a tuple?

7. What will be the output? x = "Python" print(x[0])

8. What is the purpose of the len() function?

9. What will be the output? x = 10 y = 3 print(x // y)

10. Which keyword is used to define a function in Python?

11. What is the purpose of *args?

12. What is the purpose of **kwargs?

13. What is a lambda function in Python?

14. What does OOP stand for?

15. What is a class in Python?

16. What is an object?

17. What is the main purpose of inheritance?

18. Which of the following is an OOP concept?

19. Which construct is commonly used for exception handling?

20. When does the finally block normally execute?

21. Which method returns all key-value pairs from a dictionary?

22. Which operator should be used to find employees whose salary is greater than 20,000? if salary ____ 20000:

23. Which library can commonly be used to connect Python with PostgreSQL?

24. What is the purpose of commit() in a database transaction?

25. What will be the output? a = [1, 2, 3] b = a b.append(4) print(a)