React and JavaScript Quiz

React and JavaScript Quiz

University

20 Qs

quiz-placeholder

Similar activities

Minigame Marketing management Code 1

Minigame Marketing management Code 1

University

20 Qs

NCCER 00100 Exam Review

NCCER 00100 Exam Review

9th Grade - University

20 Qs

Investment Banking Quiz

Investment Banking Quiz

University

15 Qs

E-Commerce KPI and ROI Quiz

E-Commerce KPI and ROI Quiz

8th Grade - Professional Development

15 Qs

JavaScript and React Quiz

JavaScript and React Quiz

University

20 Qs

MB_Chapter4_ The Demand for Money

MB_Chapter4_ The Demand for Money

University

15 Qs

RISK and return

RISK and return

University

20 Qs

Java & Spring

Java & Spring

University

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