Search Header Logo

React Quiz - 1

Authored by Ankit Mishra

Computers

Professional Development

Used 2+ times

React Quiz - 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is React.js?

A database management system

A JavaScript library

A frontend framework

A backend framework

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the main goal of React?

Developing User Interfaces

Creating Mobile Applications

Managing Databases

Building Backend Services

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the first step to start a new project using Vite?

Run The Development Server Using npm run dev.

Install The Dependencies

Choose The Template

Open Your Terminal & Run the following command – npm create vite@latest

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which hook is commonly used to manage state in a functional component in React?

useContext

useEffect

useReducer

useState

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does the useState hook return?

Only the state variable

Only the state updater function

An array with a state variable and a function to update it

A Promise resolving to a state variable

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is JSX in React?

A new programming language

A syntax extension of JavaScript

A built-in library of React

A database query language

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What are "props" in React?

A way to store local component data

A function that returns JSX

A mechanism for passing data from a parent to a child component

A built-in React event handler

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?