React Quiz

React Quiz

Professional Development

40 Qs

quiz-placeholder

Similar activities

FORMING CORRECTLY ORDERED QUESTIONS

FORMING CORRECTLY ORDERED QUESTIONS

Professional Development

35 Qs

Report Text

Report Text

9th Grade - Professional Development

40 Qs

Describing work and schools.

Describing work and schools.

Professional Development

39 Qs

Labora A1

Labora A1

Professional Development

40 Qs

-ED ending and past verbs

-ED ending and past verbs

Professional Development

36 Qs

GEN61-129 Vocabulary Set 4B

GEN61-129 Vocabulary Set 4B

University - Professional Development

42 Qs

Parts of Speech

Parts of Speech

Professional Development

44 Qs

BRPI U01

BRPI U01

Professional Development

41 Qs

React Quiz

React Quiz

Assessment

Quiz

English

Professional Development

Practice Problem

Easy

Created by

Dotnet Quiz

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of `useCallback` in React?

To memoize a component
To memoize a function reference
To create a new function every render
To manage side effects

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between `useEffect` and `useLayoutEffect`?

`useEffect` runs before paint, `useLayoutEffect` runs after
`useLayoutEffect` runs synchronously after DOM mutations, `useEffect` runs asynchronously after paint
They are identical
`useLayoutEffect` is deprecated

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does `React.memo` do?

Prevents re-rendering of a component
Memoizes a function
Memoizes a component and prevents re-render unless props change
Creates a new component

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of `key` prop in React lists?

To style list items
To uniquely identify elements for efficient re-rendering
To bind data
To handle events

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between `Context API` and `Redux`?

Context is for global state, Redux is for local state
Redux is built-in, Context is external
Context is simpler and built-in, Redux is more powerful and suited for complex state
They are interchangeable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of `useRef` in React?

To create a reference to a DOM element or persist a mutable value
To manage state
To trigger re-renders
To memoize a component

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the role of `React.StrictMode`?

To enable production optimizations
To highlight potential problems in an application
To disable warnings
To enforce strict typing

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?