Subject wise assessments & speed tests.
Active recall flashcards for interviews.
Algorithmic problems & logic building.
Quick reference guides for Python & SQL.
Django, FastAPI, & Data Engineering.
PostgreSQL, Aggregations & Performance.
Q1. What is the difference between a list and a tuple in Python?
Q2. What is the difference between == and is in Python?
Q3. What is a Python decorator?
Q4. What is the purpose of the yield keyword in Python?
Q5. What is a generator in Python?
Q6. What is the difference between shallow copy and deep copy?
Q7. Which module provides copy() and deepcopy() functions in Python?
Q8. What will be the output? def test(value=[]): value.append(1) return value print(test()) print(test())
Q9. Why should mutable default arguments generally be avoided in Python functions?
Q10. What is list comprehension in Python?
Q11. What will be the output? numbers = [1, 2, 3, 4, 5] result = [x * 2 for x in numbers if x % 2 == 0] print(result)
Q12. What is the purpose of the map() function in Python?
Q13. What is the purpose of filter() in Python?
Q14. What is the difference between @staticmethod and @classmethod?
Q15. What does self represent inside a Python class method?
Q16. What is method overriding in Python?
Q17. What is the purpose of super() in Python?
Q18. What is duck typing in Python?
Q19. What is the Global Interpreter Lock (GIL) in CPython?
Q20. For a CPU-bound task in standard CPython, which approach can provide true parallel execution across CPU cores?
Q21. What is the purpose of try, except, else, and finally in Python?
Q22. What is the difference between raise and assert in Python?
Q23. What is a context manager in Python?
Q24. Why is the with statement commonly used when working with files?
Q25. What will be the output? x = [1, 2, 3] y = x.copy() y.append(4) print(x) print(y)
Please answer all questions before submitting.