Back to programming Quizzes

React Performance Optimization Quiz ( Advanced )

This advanced React performance optimization quiz is designed for senior developers who want to master rendering behavior, concurrency, memoization pitfalls, and real-world performance bottlenecks. Ideal for senior-level interviews and production-grade React applications.

15
Questions
~8
Minutes
8
Min Limit

Try a few sample questions

The question bank contains 44 questions. Your scored round uses up to 15 different questions. These samples are excluded from your round; try each one before opening its answer and explanation.

1. What is the primary performance advantage of React Fiber?

  1. Interruptible and prioritized rendering
  2. Automatic memoization of components
  3. Smaller JavaScript bundles
  4. Faster API execution
Reveal sample answer and explanation

Answer: Interruptible and prioritized rendering

Fiber allows React to pause, resume, and prioritize rendering work.

2. Why can excessive useCallback reduce performance in large React apps?

  1. It disables batching
  2. It adds memory and comparison overhead
  3. It forces deep prop comparison
  4. It blocks browser paint
Reveal sample answer and explanation

Answer: It adds memory and comparison overhead

useCallback adds overhead if it does not actually prevent re-renders.

3. What is the biggest risk of missing dependencies in useEffect?

  1. Effects never run
  2. Hooks break silently
  3. Stale closures using outdated values
  4. Automatic cleanup fails
Reveal sample answer and explanation

Answer: Stale closures using outdated values

Missing dependencies cause effects to capture outdated state or props.