wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

React Quiz

Total questions: 10

Worksheet time: 2mins

Name
Class
Date
1.

What is the best definition of React.js

a)

Server-side Framework

b)

A library for building interaction interfaces

c)

A programming languge

d)

None of these

2.

Which of the following command is used to create React.js App ?

a)

npx create-react-app appName

b)

npm install appName

c)

install -i create-react-app

d)

npm -i create-react-app

3.

What is the default port number in which react application runs

a)

5000

b)

8090

c)

3000

d)

444

4.

How many components can be returned in the return method of React ?

a)

2

b)

3

c)

0

d)

1

5.

Which of the following are the ways to handle data in React.js?

a)

State and props

b)

Services and components

c)

State and Services

d)

Components and state

6.

How can we pass data from obne component to another in React.js?

a)

State

b)

Props

c)

Render with arguments

d)

Cannot pass

7.

Which of the following function is true about changing the state in React.js?

a)

state=("value")

b)

state.set("value")

c)

setState("value")

d)

All of the above

8.

Which of the following is used to render components in webpages ?

a)

DOM_render()

b)

render()

c)

ReactDOM_render()

d)

transfer()

9.

How to import Modules in React.js?

a)

import Module from 'path'

b)

from "path" import Module

c)

<import> Module

d)

None

10.

How can we add JavaScript inside HTML in React.js?

a)

inside ()

b)

Inside {}

c)

Inside[]

d)

Inside " "