Question Bank

3705 approved questions from the community

What is the purpose of getDerivedStateFromProps lifecycle method?

HARD
SINGLE CHOICE
45s
React
by Mohamed

What does the displayName property do in React components?

EASY
SINGLE CHOICE
30s
React
by Mohamed

What is the primary use case for keyed fragments?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

useDeferredValue can help keep the UI responsive during expensive re-renders.

HARD
TRUE FALSE
30s
React
by Mohamed

React automatically batches multiple state updates in event handlers.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

The useDebugValue hook is visible in production builds.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

React requires a build tool like Webpack or Vite to work.

EASY
TRUE FALSE
20s
React
by Mohamed

Which of the following statements about generators are true? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
Python
by Mohamed

Which of the following are valid immutable built-in data types in Python? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
Python
by Mohamed

What optimization technique does the Python compiler use when it encounters an expression like '15 * 20' in the source code?

MEDIUM
SINGLE CHOICE
35s
Python
by Mohamed

What is the key advantage of using a memoryview object in Python?

MEDIUM
SINGLE CHOICE
35s
Python
by Mohamed

Why are only immutable objects hashable and usable as dictionary keys or set elements?

HARD
SINGLE CHOICE
40s
Python
by Mohamed

What does Python's 'pass-by-assignment' (pass-by-object-reference) mean?

MEDIUM
SINGLE CHOICE
35s
Python
by Mohamed

What is Method Resolution Order (MRO) in Python?

HARD
SINGLE CHOICE
40s
Python
by Mohamed

What is monkey patching in Python?

MEDIUM
SINGLE CHOICE
35s
Python
by Mohamed

What is the key difference between @staticmethod and @classmethod in Python?

MEDIUM
SINGLE CHOICE
35s
Python
by Mohamed

What is the difference between a Python module and a Python package?

EASY
SINGLE CHOICE
30s
Python
by Mohamed

What is the Global Interpreter Lock (GIL) in Python?

MEDIUM
SINGLE CHOICE
40s
Python
by Mohamed

Which of the following are valid use cases for monkey patching? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
Python
by Mohamed

Which of the following are context managers commonly used for in Python? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
Python
by Mohamed
PreviousPage 118 of 186Next