Question Bank
3705 approved questions from the community
What is the purpose of getDerivedStateFromProps lifecycle method?
What does the displayName property do in React components?
What is the primary use case for keyed fragments?
useDeferredValue can help keep the UI responsive during expensive re-renders.
React automatically batches multiple state updates in event handlers.
The useDebugValue hook is visible in production builds.
React requires a build tool like Webpack or Vite to work.
Which of the following statements about generators are true? (Select all that apply)
Which of the following are valid immutable built-in data types in Python? (Select all that apply)
What optimization technique does the Python compiler use when it encounters an expression like '15 * 20' in the source code?
What is the key advantage of using a memoryview object in Python?
Why are only immutable objects hashable and usable as dictionary keys or set elements?
What does Python's 'pass-by-assignment' (pass-by-object-reference) mean?
What is Method Resolution Order (MRO) in Python?
What is monkey patching in Python?
What is the key difference between @staticmethod and @classmethod in Python?
What is the difference between a Python module and a Python package?
What is the Global Interpreter Lock (GIL) 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)