React Quiz

React Quiz

Professional Development

40 Qs

quiz-placeholder

Similar activities

FC2_LEVEL IV_Unit 10- ARTICLES/FOOD TEST

FC2_LEVEL IV_Unit 10- ARTICLES/FOOD TEST

Professional Development

41 Qs

Confusing Words and False Friends 1

Confusing Words and False Friends 1

9th Grade - Professional Development

41 Qs

Final Mock 1

Final Mock 1

Professional Development

40 Qs

SPOKEN ENGLISH FINAL ASSESSMENT

SPOKEN ENGLISH FINAL ASSESSMENT

Professional Development

39 Qs

VOCA - TEST 2 - VOL 1

VOCA - TEST 2 - VOL 1

7th Grade - Professional Development

45 Qs

english

english

Professional Development

35 Qs

U5 Grammar: Wish and if only

U5 Grammar: Wish and if only

Professional Development

36 Qs

Present Perfect

Present Perfect

Professional Development

45 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?