React and JavaScript Quiz

React and JavaScript Quiz

University

20 Qs

quiz-placeholder

Similar activities

MANAJEMEN KEUANGAN II

MANAJEMEN KEUANGAN II

University

20 Qs

Testing

Testing

University

20 Qs

D03/2017 Review 2

D03/2017 Review 2

University

15 Qs

SALES & DISTRIBUTION MANAGEMENT

SALES & DISTRIBUTION MANAGEMENT

University

18 Qs

Remove and Install Travel Motor PC2000

Remove and Install Travel Motor PC2000

KG - Professional Development

20 Qs

Introduction to Leadership (Northouse). Chapter 6

Introduction to Leadership (Northouse). Chapter 6

University

15 Qs

T Level BSE industrial heating

T Level BSE industrial heating

12th Grade - University

22 Qs

DEVELOPING A POSITIVE ATTITUDE

DEVELOPING A POSITIVE ATTITUDE

University

20 Qs

React and JavaScript Quiz

React and JavaScript Quiz

Assessment

Quiz

Professional Development

University

Medium

Created by

Karnam Bharath

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does useEffect() do in React?

Fetches data from an API

Handles lifecycle events like componentDidMount

Renders components

Creates a new state

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a higher-order component (HOC)?

useState

withAuth(Component)

useEffect

ComponentDidMount

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to create a constant in ES6?

var

constant

const

static

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary use of the Redux Toolkit?

CSS styling

Simplifying Redux state management

Creating custom hooks

Building class-based components

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT true about pure functions?

They always return the same output for the same input

They do not cause side effects

They can modify global variables

They are easy to test

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does axios.post() return?

A response object

An object with a data property only

A pending fetch call

A Promise

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What’s the purpose of render() in class-based React components?

Run side effects

Return JSX

Update state

Destroy component

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?