Question Bank

1899 approved questions from the community

The useCallback hook memoizes the result of a function, while useMemo memoizes a function itself.

MEDIUM
TRUE FALSE
30s
React
by Mohamed

Context API completely replaces the need for state management libraries like Redux.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

React.lazy only supports default exports for lazy-loaded components.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

What is prop drilling in React?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

shouldComponentUpdate is called before every re-render in class components.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

Default props values are applied when a prop is explicitly passed as undefined.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

React DevTools can be used to inspect component props and state in production builds.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

Keys in React must be globally unique across the entire application.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

What is the primary use case for keyed fragments?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

The useDebugValue hook is visible in production builds.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

Defining nested function components inside parent components is a recommended pattern.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

What is the purpose of React.StrictMode?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

useState can accept a function as its initial value for lazy initialization.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

What is a wrapper component in React?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed

Which of the following are valid ways to conditionally render components in React? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
React
by Mohamed

Which of the following are benefits of using the Virtual DOM? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
React
by Mohamed

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

MEDIUM
MULTIPLE CHOICE
40s
React
by Mohamed

Which of the following are part of the React component lifecycle? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
React
by Mohamed

Which of the following are advantages of using React? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
React
by Mohamed

Which rules does the diffing algorithm follow? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
React
by Mohamed
PreviousPage 56 of 95Next