Question Bank
1899 approved questions from the community
Python 3.13 introduced an experimental JIT compiler that can transform bytecode sequences directly into machine code.
What is the difference between an iterator and a generator in Python?
What is the primary difference between a list and an array in Python?
What is the difference between shallow copy and deep copy in Python?
What does the filter() function do in Python?
What is sys.getrefcount() used for in Python?
Which of the following are valid use cases for monkey patching? (Select all that apply)
Which of the following are context managers commonly used for in Python? (Select all that apply)
Which of the following are types of namespaces in Python? (Select all that apply)
What is an abstract class in Python?
What does the map() function return in Python 3?
What is the best practice for concatenating a large number of strings in Python?
What is the Global Interpreter Lock (GIL) in Python?
What is the key difference between @staticmethod and @classmethod in Python?
What is monkey patching in Python?
What does Python's 'pass-by-assignment' (pass-by-object-reference) mean?
What is the key advantage of using a memoryview object in Python?
What optimization technique does the Python compiler use when it encounters an expression like '15 * 20' in the source code?
What is a generator function in Python?
List comprehensions are generally faster than equivalent for loops in Python.